﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / error / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 17:14:11 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>i will look into this Thank you so much for your time </description><pubDate>Wed, 23 Jan 2013 02:19:13 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>Well then you will need to write a command line based application which interfaces with SQL SMO and script out your database to a file.As detailed, do a search for "Script Database via Command Line" and you will find help on what you want to do.</description><pubDate>Wed, 23 Jan 2013 02:12:32 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>export the database to a file called c:\script.sql which contains all the schemas and datai want to do this</description><pubDate>Wed, 23 Jan 2013 02:10:00 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>Do you have a script in the location c:\script.sql which contains the database schema and data to create a new copy of the CZ database?OrDo you want to export the CZ database to a file called c:\script.sql which contains all the schemas and data?</description><pubDate>Wed, 23 Jan 2013 02:07:33 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>I just want to run this from command line , not by GUI mode ( cz database is too large )</description><pubDate>Wed, 23 Jan 2013 02:05:07 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>Yes, but if you read the whole thing, you will see that Pinal Dave has run the SSMS GUI tool, saved the file as c:\script.sql and is then using the command line to run the script to create the objects and import the data.What are you trying to do?Have you run the GUI and exported the schema and the data into a file?</description><pubDate>Wed, 23 Jan 2013 01:55:46 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>http://blog.sqlauthority.com/2011/05/07/sql-server-2008-2008-r2-create-script-to-copy-database-schema-and-all-the-objects-data-schema-stored-procedure-functions-triggers-tables-views-constraints-and-all-other-database-objects/look at the end part ( there is a command for large table )</description><pubDate>Wed, 23 Jan 2013 01:50:37 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>They you need to look at writing a command line program which interfaces with the SQL SMO objects to pull out the DDL of the database.</description><pubDate>Wed, 23 Jan 2013 01:47:08 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>Yes i can do with ssms , but the problem is database too large , soo it throw me error Thank you</description><pubDate>Wed, 23 Jan 2013 01:45:35 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>-i is an input file which means you want to use that file to run it against the DB, not that you want to script out the DB to the file.Do a google search (other search engines avilable) for "Script Database Via Command Line" you will get many hits.Also remember that SQL has a built in GUI in SSMS which will do this for you.</description><pubDate>Wed, 23 Jan 2013 01:28:32 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>command line generate script for database ?</description><pubDate>Tue, 22 Jan 2013 21:58:30 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>What is the error message</description><pubDate>Tue, 22 Jan 2013 05:52:44 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>it is not working</description><pubDate>Tue, 22 Jan 2013 05:51:22 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item><item><title>RE: error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>[quote][b]getsimrangujral (1/21/2013)[/b][hr]C:\Users\1245&amp;gt;sqlcmd -S MOLNEW0014\TEST -i c:\script.sqlSqlcmd: 'c:\script.sql': [b]Invalid filename[/b].[/quote]Invalid filename, correct the filename and re-try</description><pubDate>Tue, 22 Jan 2013 01:20:51 GMT</pubDate><dc:creator>anthony.green</dc:creator></item><item><title>error</title><link>http://www.sqlservercentral.com/Forums/Topic1409789-391-1.aspx</link><description>C:\Users\1245&amp;gt;sqlcmd -S MOLNEW0014\TEST -i c:\script.sqlSqlcmd: 'c:\script.sql': Invalid filename.</description><pubDate>Mon, 21 Jan 2013 23:09:10 GMT</pubDate><dc:creator>getsimrangujral</dc:creator></item></channel></rss>