Quantcast
Channel: SQL Server Data Access forum
Viewing all 4164 articles
Browse latest View live

Access 2007 on 64-bit server and SQL 08 Express on 32-bit server - which version of product do I use?

$
0
0

I have a small number of small Access databases (split into front-end/back-end) and would like to move the back-end databases to SQL. There are both Access 2003 and 2007 databases. I have 3 servers virtualized on a machine running VMware:  the file server on which the Access databases reside and the SQL server to which I’d like to move the back-end database are both running Server 2003 R2 Standard Service Pack 2 (32-bit).  I have SQL 08 Express installed on the SQL server. Users access the databases via RDP to a 2008 Windows Server Enterprise without Hyper-V Service Pack 2.

I started with a 2007 back end database and in order to get the data into SQL I had to Save As to Access 2003 (from .accdb to .mdb) to use the Import and Export Data (32-bit) tool. I have created and deleted it several times because I am having trouble accessing it to link it to my front-end database. Also, since the owner of the db seems to matter – as far as providing access - and since my SQL server is also a backup domain controller, it appears that I need to have the db admin login have system administrator privileges.

But I still can’t seem to figure out how to set up the DSN properly. I read through the forums and tried logging into the terminal server as admin and using odbcad32.exe. But do I use the 64-bit or the 32-bit version?

Also, the only driver for SQL in the DSN list is SQLSRV32.DLL 6.00.6002.18005 4/11/2009. Is this the right one? If not, where do I get the right one (e.g. native client.)


[HYT00] [unixODBC][Microsoft][ODBC Driver 11 for SQL Server]Login timeout expired - after much longer than the LOGIN_TIMEOUT

$
0
0

I'm using the odbc driver on linux (SLES11, CTP version), to connect to a system which exists, but is down.  I am using SQLConnectWithRetry.

The timeout is set to 10 seconds with
  SQLSetConnectAttr(hdbc,SQL_ATTR_LOGIN_TIMEOUT,(SQLPOINTER)10,SQL_IS_UINTEGER);

just prior to the SQLDriverConnect call.

But the error:
C  SQLDriverConnect returned rc: -1
C  ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 2408]
C  (0) [HYT00] [unixODBC][Microsoft][ODBC Driver 11 for SQL Server]Login timeout expired
C  1 times error (0,0) or (-1,0) in sequence
C  ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 2408]
C  (10060) [08001] [unixODBC][Microsoft][ODBC Driver 11 for SQL Server]A network-related or instance-specific error has occurred whi
C  ERROR: -1 in function SQLConnectWithRetry (SQLConnectWithRetry) [line 2408]
C  (10060) [08001] [unixODBC][Microsoft][ODBC Driver 11 for SQL Server]TCP Provider: Error code 0x274C

Doesn't occur until 3 minutes and 10 seconds after the SQLDriverConnect call.
Why does it take so long to fail?

sqlserver

$
0
0

Buenos dias a todos ,

sabria alguien decirme donde descargar una base de datos sqlserver que me permita importar una base e datos de 100 Gigas

GRACIAS

The translation thru Bing is giving

cansomeonetellmewheredownloada  SQL Server database thatallowsme toimportabaseand100 gigabytes ofdata ?

"Provider is not specified and there is no designated default provider" vb script not working with access file.

$
0
0
Hi all,

I am currently on XP x64 and am trying to run a .vbs file, which needs access to an access file when the following error pops up:

"Provider is not specified and there is no designated default provider"
error code: 800a0ea9
source: ADODB.Connection

I have tried a bunch of stuff, but so far nothing has worked.

The following code is is question:
set AccessDB = CreateObject("ADODB.Connection")
AccessDB.Open("DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & sMSAccessDBPath)

any help would be appreciated......could I run this with cscript.exe (in the WoW64 folder) in through cmd.exe?

Thanks in advance for you help.

Jonathan


ms access I made the file but it not change to odbc *.mdb file

$
0
0
in win8 ms access I made the file but it not change to odbc *.mdb file it can change to *.mdb *.access but I didn't want this form of file I want to change to *mdb

pl/sql

$
0
0

I have a sting i need to pull certain data from.

for example the field could have:

ori 1/8 alum

ori alum 3/16 alum

ori 1/8x3/16 alum

the information i need is the numbers. 

currently i am using the following query SUBSTR(comp.description, INSTR(comp.description,' ',1,1)+1, INSTR(comp.description,' ',1,2)-INSTR(comp.description,' ',1,1)-1) AS orifices

But this does not pull the information needed in the second example.  Is there another way to be able to pull all 3 Scenarios?

Thanks

Kenny

Cannot get this view table to work Help!!

$
0
0

I am new to SQL and it was thrust upon me with my SCADA system and I have been encountering errors. Can anyone help me with this one Please!!. Tell me what it means:

Executed SQL statement: SELECT TOP (200) DateTime, TagName, Value, Quality, QualityDetail, OPCQuality, wwTagKey, wwRowCount, wwResolution, wwEdgeDetection, wwRetrievalMode, wwTimeDeadband, wwValueDeadband, wwTimeZone, wwVersion, wwCycleCount, wwTimeStampRule, wwInterpolatio...
Error Source: .Net SqlClient Data Provider
Error Message: Cannot execute the query "SELECT Tbl1001.DateTime Col1004,Tbl1001.TagName Col1005,Tbl1001.Value Col1006,Tbl1001.Quality Col1007,Tbl1001.QualityDetail Col1008,Tbl1001.OPCQuality Col1009,Tbl1001.wwTagKey Col1010,Tbl1001.wwRowCount Col1011,Tbl1001.wwResolution Col1012,Tbl1001.wwEdgeDetection Col1013,Tbl1001.wwRetrievalMode Col1014,Tbl1001.wwTimeDeadband Col1015,Tbl1001.wwValueDeadband Col1016,Tbl1001.wwTimeZone Col1017,Tbl1001.wwVersion Col1018,Tbl1001.wwCycleCount Col1019,Tbl1001.wwTimeStampRule Col1020,Tbl1001.wwInterpolationType Col1021,Tbl1001.wwQualityRule Col1022,Tbl1001.wwParameters Col1003 FROM Runtime.dbo.AnalogHistory Tbl1001" against OLE DB provider "INSQL" for linked server "INSQL". 

 

A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.

$
0
0

Hi

We have faced the following error while performing Bulk Copy operation from my .Net Application 

System.InvalidOperationException: Cannot access destination table 'ivp_pmd_price_list_14'. ---> System.Data.SqlClient.SqlException: A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
   at System.Data.SqlClient.TdsParserStateObject.WriteSni()
   at System.Data.SqlClient.TdsParserStateObject.ExecuteFlush()
   at System.Data.SqlClient.TdsParser.TdsExecuteSQLBatch(String text, Int32 timeout, SqlNotificationRequest notificationRequest, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlBulkCopy.CreateAndExecuteInitialQuery()
   at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternal()
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternal()
   at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServer(Int32 columnCount)
   at System.Data.SqlClient.SqlBulkCopy.WriteToServer(DataTable table, DataRowState rowState)
   at com.ivp.rad.dal.RBulkCopyExecutor.ExecuteBulkCopy(RDBConnectionManager dbConnectionManager, String tableName, DataTable dtTableData, SqlBulkCopyOptions option, Int32 batchSize)


Both Named Pipe and TCP protocols are enabled in my SQL Server 2008 R2 and both of servers (App and SQL Server ) are hard wired

We were inserting around 200 records with around 20 columns during this operation

I have been using this functionality since last few months and has never faced this issue. Also the same functionality worked after some time

P/S: We create a single connection object, which execute multiple SQL Command. Once all commands are executed then we cleanly dispose the connection object.

Thanks for the help

Rajesh Aggarwal


SQL Server Error Connection Failed Error 17 Please Help!

$
0
0

Hello,

I am trying to access the database made on the server computer from the client computer and I am getting this exact error!

Connection failed:

SQLState: '08001'
SQL Server Error: 17
[DBNETLIB][ConnectionOpen (Connect().]SQL Server does not exist or access denied.

Please let me know.
Thanks,

Fish

How to get drop-down selection as in MS Excel/Access (datasheet mode)?

$
0
0

If my database is Access, in datasheet mode I can click on the column title and make a selection to filter.   If my source of data is from SQL, I have no more this feature.

This is critical to my end users.

Any solution to this?

Sql server 2008 and VS SP1

$
0
0
I am trying to install SQL server express 2008 on my machine. I get an error message that says that older version of VS 2008 in installed on the computer. Upgrade to VS2008 SP1 before installing Sql server 2008.

I tried to install sp1 but I get an error message that a compatible version of vs2008 is not detected on the system. the upgrade is not compatible with express editions.

I am having trouble installing sql server 2008 express installed on my machine and I am having problems. Please help me.

how to get this table

$
0
0
How do I get:

id       Name       Value
1          A          4
1          B          8
2          C          9
to

id          Column
1          A:4, B:8
2          C:9

GUIDs and index

$
0
0
I am working on a database that usually uses GUIDs as primary keys.

By default SQL Server places a clustered index on primary key columns. I understand that this is a silly idea for GUID columns, and that non-clustered indexes are better.

What do you think - should I get rid of all the clustered indexes and replace them with non-clustered indexes?

Why wouldn't SQL's performance tuner offer this as a recommendation?

AD security in SQL Server

$
0
0
We have an internal application that is using a service account and fine-grained table and field control is controlled by permissions tables in the application.

If we wanted to use pass-through security with Active Directory, we have a problem in that a user with odbc access could modify tables outside of business rules that exist in the application.

Is there a way to enable pass-through security, but disable odbc access.

Micorsoft SQL Server, Error: 5171

$
0
0

I get the following error while attaching database in 2008 R2:

Msg 1813, Level 16, State 2, Line 1

Could not open new database 'ERECP-NEW2012'. CREATE DATABASE is aborted.

Msg 1813, Level 16, State 2, Line 1

Could not open new database 'ERECP-NEW2012'. CREATE DATABASE is aborted.

Msg 824, Level 24, State 2, Line 1

SQL Server detected a logical consistency-based I/O error: incorrect pageid (expected 1:9; actual 5749:-96032662). It occurred during a read of page (1:9) in database ID 8 at offset 0x00000000012000 in file 'E:\ERECP-NEW2012_Data.mdf'. Additional messages in the SQL Server error log or system event log may provide more detail. This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.


reading windbg stack trace

$
0
0

I had an access violation error which caused the sql server services to shut down. I used windbg to debug the sql dump and got the below stack trace.

to me it seems that msxml is a problem and prepared xml procedures are being used to process xml file causing issues.

can some check and verify whether I am correct or not?

This is on sql server 2008 r2 standard RTM edition.

0:000> KC 100
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!stackTraceCallBack
sqlservr!ex_handle_except
kernel32!UnhandledExceptionFilter
ntdll! ?? ::FNODOBFM::`string'
ntdll!_C_specific_handler
ntdll!RtlpExecuteHandlerForException
ntdll!RtlDispatchException
ntdll!KiUserExceptionDispatcher
msxml6!Base::freeRentalObjects
msxml6!Base::StackExitNormal
msxml6!ModelInit::~ModelInit
msxml6!SAXReader::parse
MSO
0x0
0x0
0x0

Cheers!!! SqlFrenzy

Error Description:Package failed because Step 'DTSStep_DTSExecuteSQLTask_4' failed.

$
0
0

Hi experts,

I am going to run HAZUS-MH (loss estimation software for earthquake) for my research study. i am following step by step of the procedure. finally i encounter with error which are state below. could somebody help me out what all this things about?There is popup state that

Code =80040606

Code meaning:  IDispatch error#1030

The execution of the following DTS Package failed: 

Error Source: Microsoft Data Transformation Services (DTS) Package
Error Description:Package failed because Step 'DTSStep_DTSExecuteSQLTask_4' failed.
Error code: 80040428
\Error Help File:sqldts80.hlp
Error Help Context ID:700


Package Name: CreateStudyRegionDB
Package Description: (null)
Package ID: {3CF74498-6EC1-449E-B957-07A8CFD6764A}
Package Version: {3B3261E3-ABD6-465A-81BF-3390433514DD}
Package Execution Lineage: {3F9376F7-DE06-4076-9DA1-8D6279762F25}
Executed On: IVM-DCM1-12078
Executed By: User
Execution Started: 14/4/2013 7:57:03 PM
Execution Completed: 14/4/2013 7:57:06 PM
Total Execution Time: 3.088 seconds

Package Steps execution information:


Step 'DTSStep_DTSExecuteSQLTask_1' was not executed

Step 'DTSStep_DTSExecuteSQLTask_3' succeeded
Step Execution Started: 14/4/2013 7:57:04 PM
Step Execution Completed: 14/4/2013 7:57:05 PM
Total Step Execution Time: 0.531 seconds
Progress count in Step: 0

Step 'DTSStep_DTSExecuteSQLTask_4' failed

Step Error Source: Microsoft OLE DB Provider for SQL Server
Step Error Description:Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AI" in the equal to operation.
Step Error code: 80040E14
Step Error Help File:
Step Error Help Context ID:0

Step Execution Started: 14/4/2013 7:57:05 PM
Step Execution Completed: 14/4/2013 7:57:06 PM
Total Step Execution Time: 0.748 seconds
Progress count in Step: 0

Step 'CreateStudyRegionDb_ExecuteSQLTask_CreateSRTables' succeeded
Step Execution Started: 14/4/2013 7:57:03 PM
Step Execution Completed: 14/4/2013 7:57:04 PM
Total Step Execution Time: 1.809 seconds
Progress count in Step: 0

Step 'DTSStep_DTSExecuteSQLTask_5' was not executed

Step 'DTSStep_DTSExecuteSQLTask_8' was not executed

Step 'DTSStep_DTSExecuteSQLTask_10' was not executed

Step 'DTSStep_DTSExecuteSQLTask_2' was not executed

Step 'DTSStep_DTSExecuteSQLTask_6' was not executed

We have an MS SQL database (I believe 2012, how can I check?). What should be my query tool?

$
0
0

The db powers an accounting package (IRIS Exchequer MS SQL Version installed 2012). I can query it using

  • The report writer in the accounting package which has access to the accounting data tables and hides a lot of system stuff that I probably don't need to see. But the report writer itself is limited and clunky compared to say MS Access.
  • MS Access - I have already made a connection and this could work. Seems to see everything the whole structure but I believe may have limitations further down the road (web awareness, multi-users and whatnot).
  • MS Query in Excel. I'm assuming you would only need or want to use this, for anything non-trivial, if you didn't have MS Access (even if the end product and presentation is/will be in Excel). We do have MS Access. Is that a reasonable statement?
  • MS Visual Studio (is that a query tool mainly, at all? I think it's a developers kit isn't it?).
  • Another specific Miscrosoft SQL front end (is this a/the Native Client?). How do I get one. If I've got it already where do I find it?
  • a non-MS product such as Crystal Reports.

I'm posting this to the data access forum, should it be in tools, somewhere else? Too many questions.

How to print results from stored procedure which returns data from 10 different table with differnt column type.

$
0
0

I need to print the output of stored procedure which returns all the rows from 10 different tables from my VC++ code. How do I do this with out using sqlbindcol to bind the out put of each column in VC++


Example below

SQLCHAR  stmt[]= "exec storeproc";

retcode = SQLExecDirect(hstmt,stmt, SQL_NTS);

SQLFetch(hstmt);

Now I need to print all the output of Stored procedure


Thank you,

Karthick P.K |My blogs|My Scribbles|Twitter|My Facebook Group|

www.Mssqlwiki.com

Please click the Mark as answer button and vote as helpful if this reply solves your problem

How to get isqlw.

$
0
0

Recently my operating system was upgraded to windows 7. The basic installation contains only configuration tool set of sql server 2005. I need to get isqlw for keep daily work simple. From where can I download isqlw and be sure that its legal and allowed for me?

Thanks

Viewing all 4164 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>