Archive

Archive for the ‘SQL Server’ Category

SQL Server 2008: Error Saving changes is not permitted

November 28th, 2009 christian No comments
If you have been playing with SQL Server Management Studio 2008 and are modifying tables in the designer, you may run into this error:

Save
Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created.  You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created.

Logo_Ms_SQL

Read more…

Categories: Microsoft, SQL Server Tags:

SQL: List Database Connections for specific user

November 12th, 2009 christian No comments
Want to list all connections to a database for a specific user? go read on.. Logo_Ms_SQL

 

Read more…

Categories: Microsoft, SQL Server Tags:

SQL: Drop / Kill Database Connections

November 12th, 2009 christian No comments
If you need to drop database connections for a specific database, go read on..
This has been tested for Microsoft SQL Server 2005 and Microsoft SQL Server 2008.
Logo_Ms_SQL

Read more…

Categories: Microsoft, SQL Server Tags:

SQL how to attach a database / DB using osql.exe

August 26th, 2009 christian No comments

This is a quite simple task ..

Assuming you have an MDF file called cxnMassImport.mdf and you want to attach it using osql.exe.

Open a CMD

Type:

osql.exe -E -S .\SQLExpress

Read more…

Categories: Microsoft, SQL Server Tags:

How to: Change the Default Login Authentication Mode to SQL

July 25th, 2009 christian No comments

How to Change the Default Login Authentication Mode to SQL

short description:
use SECURITYMODE=SQL as command line setup parameter when installing SQL Server
or
change one of the following registry keys:

Default instance:
HKLM\Software\Microsoft\MSSqlserver\MSSqlServer\LoginMode

Named instance:
HKLM\Software\Microsoft\Microsoft SQL Server\ Instance Name\MSSQLServer\LoginMode

to 2 for mixed-mode or 1 for integrated security. (Integrated is the default setup for the SQL Server 2000 Data Engine.)

for more refer to article MS Q285097

Categories: SQL Server Tags:

Solution: SQL Server Enterprise Manager General OLE Error 16386

July 25th, 2009 christian No comments

Tried to start Microsoft SQL Server Enterprise Manager and got stuck at the error message General OLE Error 16386:

try this, maybe this solves the issue..

a. Stop all SQL Server services (MSSQLServer, SQLServerAgent, MSSEARCH)
b. Open command prompt and go to the %ProgramFiles%\Microsoft SQL Server\80\Tools\Binn directory
c. Unregister the following .dll files (Ex. regsvr32 /u dtsui.dll): dtsui.dll,sqlns.dll, sqldmo.dll, sqllex.dll, sqlmmc.dll
d. Copy and paste the .dll files from a CD (under x86\Binn directory) to the Program Files\Microsoft SQL Server\80\Tools\Binn
e. Register the .dll files (Ex. regsvr32 sqldmo.dll)

Categories: SQL Server Tags:
WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera