Click here to Skip to main content
15,909,440 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have use this,
XML
<SCRIPT LANGUAGE=VBScript RUNAT=Server>
 Sub Session_OnStart
 Session("ConnectionString") =
   "DSN=SQL\SQLEXPRESS;UID=sa;PWD=sa;DATABASE=DB1;APP=ASP script"


    Session("ConnectionTimeout") = 15
    Session("CommandTimeout") = 30
 End Sub

 Sub Session_OnEnd

 End Sub
 </SCRIPT>

see underlined connection string
it's giving error

Error Message...
an unhand-led exception ('[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified') Occurred in W3wp.exe [4160].  

help you know answer
thanks in adv.
Posted
Updated 10-Dec-12 0:44am
v2
Comments
AnkitGoel.com 10-Dec-12 6:39am    
what is error message?
Aarti Meswania 10-Dec-12 6:43am    
an unhand-led exception ('[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified') Occurred in W3wp.exe [4160].
AnkitGoel.com 10-Dec-12 6:50am    
have you created DSN ?
Aarti Meswania 10-Dec-12 7:08am    
while create system dsn error comes,

[Microsoft][ODBC SQL Server Driver][Shared Memory]SQL Server does not exist or access denied.

AnkitGoel.com 10-Dec-12 7:09am    
please check your server name and host address

This is ODBC connection
Check if you have configured it in -> Settings --> Control Panel -> Administrative Tools -> Data Sources(ODBC)
 
Share this answer
 
Comments
Aarti Meswania 13-Dec-12 6:18am    
thank you for hint :)
Issue is solved...
Hope it will be useful to them who are facing same problem

I have create DSN,...
open controlpanel -> administrative tools -> ODBC -> System DSN ->

select 'SQL Server' Driver -> Name DSN as 'SQLDSN'
-> select servername/ copy paste my sql server name [problem was here in servername list my servername was not full as in sqlserver so, that i copy-paste it from sql connection window)
-> enter sql server id-pwd
-> select default database

finish and test it!
after test of connection is succeed


in asp...
I used connection string as below
"DSN = SQLDSN; uid=___ ; pwd=____;" 


Happy Coding!
:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900