473,473 Members | 1,984 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

SQL and DSN-Less connection

I've used the below DSN-Less template for a remote SQL DB, but having issues
trying to get it work on my local computer. Any idea what the values should
be? I get this error...

Error Type:
Provider (0x80040E21)
Multiple-step OLE DB operation generated errors. Check each OLE DB status
value, if available. No work was done.

<%
Set MM_GenKSQL_STRING = Server.CreateObject("ADODB.Connection")
MM_GenKSQL_STRING.Provider = "sqloledb"
MM_GenKSQL_STRING.Properties("Data Source").Value = "local" 'I've tried
local and also my computer name
MM_GenKSQL_STRING.Properties("Network Library").Value = "local" 'I've
tried local and also my computer name
MM_GenKSQL_STRING.Properties("Initial Catalog").Value = "GenK" 'I know
this is correct
MM_GenKSQL_STRING.Properties("User ID").Value = "" 'connecting
locally - don't need a username
MM_GenKSQL_STRING.Properties("Password").Value = "" 'connecting
locally - don't need a password
MM_GenKSQL_STRING.open
%>
Jul 19 '05 #1
1 1281
> <%
Set MM_GenKSQL_STRING = Server.CreateObject("ADODB.Connection")
MM_GenKSQL_STRING.Provider = "sqloledb"
MM_GenKSQL_STRING.Properties("Data Source").Value = "local" 'I've tried
local and also my computer name
MM_GenKSQL_STRING.Properties("Network Library").Value = "local" 'I've
tried local and also my computer name
MM_GenKSQL_STRING.Properties("Initial Catalog").Value = "GenK" 'I know
this is correct
MM_GenKSQL_STRING.Properties("User ID").Value = "" 'connecting
locally - don't need a username
MM_GenKSQL_STRING.Properties("Password").Value = "" 'connecting
locally - don't need a password
MM_GenKSQL_STRING.open
%>


Ugh, what is all this? STOP USING WYSIWYG CRAP TO PRODUCE ASP CODE.
http://www.aspfaq.com/2126

The server name should be "(local)" with the parens or "LOCALHOST" or
"127.0.0.1" or your IP address or your computer name. I don't know where
you got the idea to use "local"...

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Leader | last post by:
HI All, I created a SQL Server DSN using Windows ODBC Data Source Administrator. While creating the DSN, it asked me about authentication process in reply to which I selected "With SQL Server...
1
by: Dan | last post by:
Hi I have recently converted an Access 97 database to 2003. Most of the change went fine with no problems but every now and then my DSN connections to my back-end SQL-database fail and it does not...
1
by: Dan | last post by:
Hi I have recently converted an Access 97 database to 2003. Most of the change went fine with no problems but every now and then my DSN connections to my back-end SQL-database fail and it does not...
4
by: Steve Sweales | last post by:
I'm trying to find some code on how to create a DSN using C# and SQLConfigDataSource. Can anybody help me please, before I tear my hair out!! *** Sent via Devdex http://www.devdex.com ***...
0
by: Neo | last post by:
Hello All, ODBCAD32.exe launches DSN Setup. But then I have to select DSN and click configure to configure DSN. Is there any way, I could invoke configuration dialog box for particular DSN...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.