Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Script Tbl Data to Insert Stmts. - Handles Unicode

By StormNorm,

Script Table Data to Insert Statements - Handles Unicode datatypes (nchar, nvarchar, ntext). This script works with SQL 2000 and has been improved to handle properly the nchar, nvarchar, and ntext data types for Unicode, as well as handle apostrophes in data correctly. Usage is to run the script to create the stored proc in the database that contains the table you want to script inserts for, then call the proc in the context of that database as follows: exec InsertGenerator @tableName = 'myTableName' ... Original script from, and thanks go to Sumit Amar at,
http://www.codeproject.com/database/InsertGeneratorPack.asp.

Total article views: 565 | Views in the last 30 days: 4
 
Related Articles
ARTICLE

Multi-Script, Multi-DB Deployments

A way to handle application releases involving multiple scripts and/or multiple databases.

FORUM

PHP error handling onto database

PHP error handling

FORUM

I need script related to databases

glnp scripts on database

FORUM

Generate scripts for all databases

Generate scripts for all databases

Tags
miscellaneous    
t-sql    
 
Contribute