Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.databases.ms-sqlserver > #1277

Re: SSE2008 T-SQL: Include Files?

From Erland Sommarskog <esquel@sommarskog.se>
Newsgroups comp.databases.ms-sqlserver, microsoft.public.sqlserver.programming
Subject Re: SSE2008 T-SQL: Include Files?
Followup-To comp.databases.ms-sqlserver
Date 2012-09-11 23:17 +0200
Organization Erland Sommarskog
Message-ID <XnsA0CBECDEF8A2AYazorman@127.0.0.1> (permalink)
References <qurs48dh0k9g74ja4a7q0lpi8gocvgp5p6@4ax.com>

Cross-posted to 2 groups.

Followups directed to: comp.databases.ms-sqlserver

Show all headers | View raw


Gene Wirchenko (genew@ocis.net) writes:
>      Does SQL Server (and especially SSE2008) have the concept of
> include files?  

SQL Server does not have the concept of files. This is a server product.

You could try SQLCMD mode in SSMS. SQLCMD has ~r to read in a file, but I 
would not like to maintain that code. But read about SQLCMD in Books Online.

>      I find that I am repeating a lot of error handling code and

I warned you, didn't I?



-- 
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx

Back to comp.databases.ms-sqlserver | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

SSE2008 T-SQL: Include Files? Gene Wirchenko <genew@ocis.net> - 2012-09-10 16:10 -0700
  Re: SSE2008 T-SQL: Include Files? Erland Sommarskog <esquel@sommarskog.se> - 2012-09-11 23:17 +0200
    Re: SSE2008 T-SQL: Include Files? Gene Wirchenko <genew@ocis.net> - 2012-09-11 14:31 -0700
      Re: SSE2008 T-SQL: Include Files? Erland Sommarskog <esquel@sommarskog.se> - 2012-09-12 23:15 +0200
  Re: SSE2008 T-SQL: Include Files? rja.carnegie@gmail.com - 2012-09-12 14:59 -0700

csiph-web