Click here to Skip to main content
15,900,457 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Anybody can help regarding this exception. I am using SQL Replication class in c # for db replication at run-time.

"An exception occurred while executing a Transact-SQL statement or batch."
Posted
Comments
honeyashu 18-May-12 3:18am    
Can you give some details, what exact exception is thrown.

Also, do the connection has enough permissions to create the new database ?
hunain.esh 18-May-12 5:47am    
i am not creating a new database. The new database with same tables is there. I am just giving its path

Check the SQL Port if it's being used by the database.

If it doesn't help, then use this: Find the best solution
 
Share this answer
 
Go through this Link
This may help you
http://support.microsoft.com/kb/914779[^]
 
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