Checking if a table exists
Hi,
I am creating a SQL Server tables programmatically in C#. I want to check first if a table exists and only if it doesn't exist, create one. I was looking around but I couln't find an easy way to do so.
Any ideas?
Thanks a lot ,
Rakefet
Answers (6)
1
Have you tried checking running the same in sql with the same credentials and servername?
Have a look to this link
https://blog.devoworx.net/2017/01/30/connection-timeout-expired-pre-login-handshake/amp/
Accepted 0
yes when i login to sql server management it connects