From marklbreen at gmail.com Mon Feb 1 04:38:55 2010 From: marklbreen at gmail.com (Mark Breen) Date: Mon, 1 Feb 2010 10:38:55 +0000 Subject: [dba-SQLServer] BCP of fixed width files In-Reply-To: <4B6582EF.2050300@colbyconsulting.com> References: <4B643C70.7050706@colbyconsulting.com> <4B64A7B3.3030308@colbyconsulting.com> <4B6582EF.2050300@colbyconsulting.com> Message-ID: Hi John, Yes, this is a great idea, then you can pluck positions 8 - 13 and 47 - 49 and you are good to go, very useful, I have done that plenty of times also. If I were King, I would ban fixed width. Mark On 31 January 2010 13:17, jwcolby wrote: > I do have the column definitions. > > In fact I pretty much don't care about most of the columns. It occurred to > me last night that I can > just define the columns I care about which makes it just a few minutes > work. Sometimes you can't > see the table for the fields, so to speak. > > John W. Colby > www.ColbyConsulting.com > > > Mark Breen wrote: > > Hello John, > > > > Sorry to hear that, do you have the column mappings? If not, how can you > > interrogate the fixed width file, if you then... > > > > if it is only 80 columns can you not > > > > a) make that table manually, then use it to generate the format file > > (probably 80 minutes work) > > b) if you have an existing similar table then modify that, add the new > > columns, and use that to generate a format file. > > > > Good luck, > > > > Mark > > > > > > > > On 30 January 2010 21:42, jwcolby wrote: > > > >> Mark, > >> > >> Sigh. > >> > >> The problem here is that I don't have the table I intend to import to. > Or > >> more correctly I thought > >> I did but they changed the format. Dropped one field for sure, and who > >> knows what else. I found a > >> way to cause BCP to export the spec if you have the table, but if you > don't > >> have the table > >> (importing something new...) then you have to do it once manually in > order > >> to get that table the > >> first time. This thing is 670 characters wide and about 80 or so > fields. > >> > >> This sucks so bad! > >> > >> John W. Colby > >> www.ColbyConsulting.com > >> > >> > >> Mark Breen wrote: > >>> Hello John, > >>> > >>> the way that I learnt to create a format file for bcp use was to > perform > >> an > >>> export from the table that i intend to import to, and then once I have > >> the > >>> export working well, I could save that as a format file. Once you have > >> the > >>> format file, the import will work well also. Did you teach me that > trick > >> in > >>> 1997/8 ? > >>> > >>> Having said all that, I still encourage you to spend eight hours with > >> SSIS, > >>> you are performing ETL, and SSIS is the ETL tool that MS supply. It is > >>> designed for volumes like you are using. SSIS must be as fast as bcp, > >> just > >>> a better GUI and much more control. You can run scripts on a column by > >>> column or record by record basis. *Extract* from your text file, > >> *transform > >>> * the data and then when you have clean data *load* it into SQL Server > >>> tables. > >>> > >>> With your knowledge of your particular data, and your programming > >> abilities, > >>> you could have SSIS really singing in a week or two, and I think you > >> would > >>> not look back. > >>> > >>> Additionally, SSIS and ETL are very marketable toolsets to be expert > in. > >>> Will not hurt the CV. > >>> > >>> Once you have an SSIS package, you can call that from an sproc, and > >> probably > >>> even more sophisticated ways to manipulate it. > >>> > >>> PS, I have used fixed width files in the past and hate them, once > change > >> in > >>> column seven and you have to re-do every column. For even small > tables, > >> I > >>> think it is worth while building a string concatenation tool in Excel, > so > >>> that I just name the columns and sizes and Excel automatically > calculates > >>> the start and end points of the data. For you, this must be a must. > If > >> you > >>> have not already discovered that, you will soon enough. Remapping by > >> hand > >>> the second time is no fun. > >>> > >>> Thanks > >>> > >>> Mark > >>> > >>> > >>> > >>> > >>> > >>> > >>> On 30 January 2010 14:04, jwcolby wrote: > >>> > >>>> Amigos, > >>>> > >>>> I have to import a fixed width file periodically. It is fairly > complex, > >>>> containing perhaps 50-70 > >>>> fields. I performed this import one time "manually" using the import > >>>> wizard, but manually defining > >>>> the field names / widths every time is not happening! > >>>> > >>>> So, I have a "template" table that has the field names and sizes (all > >>>> nvarchar() ). I have a stored > >>>> procedure I created last night which will create that table for me. > >>>> > >>>> I routinely use BCP to import and export "CSV" type files (delimited), > >> and > >>>> I have a C# class which > >>>> allows me to quickly and easily set up a stored procedure object, set > up > >>>> parameters, get back error > >>>> codes etc. > >>>> > >>>> What I need to do (it it is even possible) is to learn how to use BCP > >> with > >>>> a fixed width file. My > >>>> understanding is that you use a format file in which you define the > >> fields, > >>>> data types etc. and then > >>>> you pass that to BCP. > >>>> > >>>> Does anyone out there do this thing, any words of advice. Any > >> alternatives > >>>> which I as a SQL Server > >>>> novice could possibly make happen? > >>>> > >>>> TIA for any assistance. > >>>> > >>>> -- > >>>> John W. Colby > >>>> www.ColbyConsulting.com > >>>> _______________________________________________ > >>>> dba-SQLServer mailing list > >>>> dba-SQLServer at databaseadvisors.com > >>>> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > >>>> http://www.databaseadvisors.com > >>>> > >>>> > >>> _______________________________________________ > >>> dba-SQLServer mailing list > >>> dba-SQLServer at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > >>> http://www.databaseadvisors.com > >>> > >>> > >> _______________________________________________ > >> dba-SQLServer mailing list > >> dba-SQLServer at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > >> http://www.databaseadvisors.com > >> > >> > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Mon Feb 1 08:12:41 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 01 Feb 2010 09:12:41 -0500 Subject: [dba-SQLServer] BCP of fixed width files In-Reply-To: References: <4B643C70.7050706@colbyconsulting.com> <4B64A7B3.3030308@colbyconsulting.com> <4B6582EF.2050300@colbyconsulting.com> Message-ID: <4B66E159.4010001@colbyconsulting.com> If you would ban fixed width, I would vote for you for King. John W. Colby www.ColbyConsulting.com Mark Breen wrote: > Hi John, > > Yes, this is a great idea, then you can pluck positions 8 - 13 and 47 - 49 > and you are good to go, very useful, I have done that plenty of times also. > > > If I were King, I would ban fixed width. > > Mark > > > > On 31 January 2010 13:17, jwcolby wrote: > >> I do have the column definitions. >> >> In fact I pretty much don't care about most of the columns. It occurred to >> me last night that I can >> just define the columns I care about which makes it just a few minutes >> work. Sometimes you can't >> see the table for the fields, so to speak. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Mark Breen wrote: >>> Hello John, >>> >>> Sorry to hear that, do you have the column mappings? If not, how can you >>> interrogate the fixed width file, if you then... >>> >>> if it is only 80 columns can you not >>> >>> a) make that table manually, then use it to generate the format file >>> (probably 80 minutes work) >>> b) if you have an existing similar table then modify that, add the new >>> columns, and use that to generate a format file. >>> >>> Good luck, >>> >>> Mark >>> >>> >>> >>> On 30 January 2010 21:42, jwcolby wrote: >>> >>>> Mark, >>>> >>>> Sigh. >>>> >>>> The problem here is that I don't have the table I intend to import to. >> Or >>>> more correctly I thought >>>> I did but they changed the format. Dropped one field for sure, and who >>>> knows what else. I found a >>>> way to cause BCP to export the spec if you have the table, but if you >> don't >>>> have the table >>>> (importing something new...) then you have to do it once manually in >> order >>>> to get that table the >>>> first time. This thing is 670 characters wide and about 80 or so >> fields. >>>> This sucks so bad! >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> >>>> Mark Breen wrote: >>>>> Hello John, >>>>> >>>>> the way that I learnt to create a format file for bcp use was to >> perform >>>> an >>>>> export from the table that i intend to import to, and then once I have >>>> the >>>>> export working well, I could save that as a format file. Once you have >>>> the >>>>> format file, the import will work well also. Did you teach me that >> trick >>>> in >>>>> 1997/8 ? >>>>> >>>>> Having said all that, I still encourage you to spend eight hours with >>>> SSIS, >>>>> you are performing ETL, and SSIS is the ETL tool that MS supply. It is >>>>> designed for volumes like you are using. SSIS must be as fast as bcp, >>>> just >>>>> a better GUI and much more control. You can run scripts on a column by >>>>> column or record by record basis. *Extract* from your text file, >>>> *transform >>>>> * the data and then when you have clean data *load* it into SQL Server >>>>> tables. >>>>> >>>>> With your knowledge of your particular data, and your programming >>>> abilities, >>>>> you could have SSIS really singing in a week or two, and I think you >>>> would >>>>> not look back. >>>>> >>>>> Additionally, SSIS and ETL are very marketable toolsets to be expert >> in. >>>>> Will not hurt the CV. >>>>> >>>>> Once you have an SSIS package, you can call that from an sproc, and >>>> probably >>>>> even more sophisticated ways to manipulate it. >>>>> >>>>> PS, I have used fixed width files in the past and hate them, once >> change >>>> in >>>>> column seven and you have to re-do every column. For even small >> tables, >>>> I >>>>> think it is worth while building a string concatenation tool in Excel, >> so >>>>> that I just name the columns and sizes and Excel automatically >> calculates >>>>> the start and end points of the data. For you, this must be a must. >> If >>>> you >>>>> have not already discovered that, you will soon enough. Remapping by >>>> hand >>>>> the second time is no fun. >>>>> >>>>> Thanks >>>>> >>>>> Mark >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> On 30 January 2010 14:04, jwcolby wrote: >>>>> >>>>>> Amigos, >>>>>> >>>>>> I have to import a fixed width file periodically. It is fairly >> complex, >>>>>> containing perhaps 50-70 >>>>>> fields. I performed this import one time "manually" using the import >>>>>> wizard, but manually defining >>>>>> the field names / widths every time is not happening! >>>>>> >>>>>> So, I have a "template" table that has the field names and sizes (all >>>>>> nvarchar() ). I have a stored >>>>>> procedure I created last night which will create that table for me. >>>>>> >>>>>> I routinely use BCP to import and export "CSV" type files (delimited), >>>> and >>>>>> I have a C# class which >>>>>> allows me to quickly and easily set up a stored procedure object, set >> up >>>>>> parameters, get back error >>>>>> codes etc. >>>>>> >>>>>> What I need to do (it it is even possible) is to learn how to use BCP >>>> with >>>>>> a fixed width file. My >>>>>> understanding is that you use a format file in which you define the >>>> fields, >>>>>> data types etc. and then >>>>>> you pass that to BCP. >>>>>> >>>>>> Does anyone out there do this thing, any words of advice. Any >>>> alternatives >>>>>> which I as a SQL Server >>>>>> novice could possibly make happen? >>>>>> >>>>>> TIA for any assistance. >>>>>> >>>>>> -- >>>>>> John W. Colby >>>>>> www.ColbyConsulting.com >>>>>> _______________________________________________ >>>>>> dba-SQLServer mailing list >>>>>> dba-SQLServer at databaseadvisors.com >>>>>> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>>>>> http://www.databaseadvisors.com >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> dba-SQLServer mailing list >>>>> dba-SQLServer at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>>>> http://www.databaseadvisors.com >>>>> >>>>> >>>> _______________________________________________ >>>> dba-SQLServer mailing list >>>> dba-SQLServer at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>>> http://www.databaseadvisors.com >>>> >>>> >>> _______________________________________________ >>> dba-SQLServer mailing list >>> dba-SQLServer at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >>> http://www.databaseadvisors.com >>> >>> >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Tue Feb 2 10:09:08 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 02 Feb 2010 11:09:08 -0500 Subject: [dba-SQLServer] SQL Server 2008 - Changes made Message-ID: <4B684E24.8070807@colbyconsulting.com> I am consistently getting an error "the changes you made would require the table to be dropped and recreated". This seems to be pretty much ANY change to the table in design view. Is it my imagination or did a lot of these changes used to be possible in SQL Server 2005? Is it something else that I don not understand? -- John W. Colby www.ColbyConsulting.com From mwp.reid at qub.ac.uk Tue Feb 2 10:14:27 2010 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 2 Feb 2010 16:14:27 +0000 Subject: [dba-SQLServer] SQL Server 2008 - Changes made In-Reply-To: <4B684E24.8070807@colbyconsulting.com> References: <4B684E24.8070807@colbyconsulting.com> Message-ID: <631CF83223105545BF43EFB52CB08295467E27411D@EX2K7-VIRT-2.ads.qub.ac.uk> John Try this "Within SQL Management Studio click on the Tools menu. Then Options, then the Designer node and uncheck the box that says: Prevent saving changes that require the table to be re-created." martin Martin WP Reid Information Services The Library at Queen's Tel : 02890976174 Email : mwp.reid at qub.ac.uk Sharepoint Training Portal ________________________________________ From: dba-sqlserver-bounces at databaseadvisors.com [dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: 02 February 2010 16:09 To: Sqlserver-Dba Subject: [dba-SQLServer] SQL Server 2008 - Changes made I am consistently getting an error "the changes you made would require the table to be dropped and recreated". This seems to be pretty much ANY change to the table in design view. Is it my imagination or did a lot of these changes used to be possible in SQL Server 2005? Is it something else that I don not understand? -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 2 10:34:21 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 02 Feb 2010 11:34:21 -0500 Subject: [dba-SQLServer] SQL Server 2008 - Changes made In-Reply-To: <631CF83223105545BF43EFB52CB08295467E27411D@EX2K7-VIRT-2.ads.qub.ac.uk> References: <4B684E24.8070807@colbyconsulting.com> <631CF83223105545BF43EFB52CB08295467E27411D@EX2K7-VIRT-2.ads.qub.ac.uk> Message-ID: <4B68540D.9040307@colbyconsulting.com> Thanks, that did it. What gremlins am I unleashing by doing this? John W. Colby www.ColbyConsulting.com Martin Reid wrote: > John > > Try this > > "Within SQL Management Studio click on the Tools menu. Then Options, then the Designer node and uncheck the box that says: Prevent saving changes that require the table to be re-created." > > > martin > > > Martin WP Reid > Information Services > The Library at Queen's > Tel : 02890976174 > Email : mwp.reid at qub.ac.uk > Sharepoint Training Portal > ________________________________________ > From: dba-sqlserver-bounces at databaseadvisors.com [dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] > Sent: 02 February 2010 16:09 > To: Sqlserver-Dba > Subject: [dba-SQLServer] SQL Server 2008 - Changes made > > I am consistently getting an error "the changes you made would require the table to be dropped and > recreated". This seems to be pretty much ANY change to the table in design view. Is it my > imagination or did a lot of these changes used to be possible in SQL Server 2005? Is it something > else that I don not understand? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From mwp.reid at qub.ac.uk Tue Feb 2 10:42:38 2010 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 2 Feb 2010 16:42:38 +0000 Subject: [dba-SQLServer] SQL Server 2008 - Changes made In-Reply-To: <4B68540D.9040307@colbyconsulting.com> References: <4B684E24.8070807@colbyconsulting.com> <631CF83223105545BF43EFB52CB08295467E27411D@EX2K7-VIRT-2.ads.qub.ac.uk>, <4B68540D.9040307@colbyconsulting.com> Message-ID: <631CF83223105545BF43EFB52CB08295467E27411E@EX2K7-VIRT-2.ads.qub.ac.uk> John It could cause problems with large tables such as those you are using. It drops and recreate the table. I think you are better using Alter Table Martin Martin WP Reid Information Services The Library at Queen's Tel : 02890976174 Email : mwp.reid at qub.ac.uk Sharepoint Training Portal ________________________________________ From: dba-sqlserver-bounces at databaseadvisors.com [dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] Sent: 02 February 2010 16:34 To: Discussion concerning MS SQL Server Subject: Re: [dba-SQLServer] SQL Server 2008 - Changes made Thanks, that did it. What gremlins am I unleashing by doing this? John W. Colby www.ColbyConsulting.com Martin Reid wrote: > John > > Try this > > "Within SQL Management Studio click on the Tools menu. Then Options, then the Designer node and uncheck the box that says: Prevent saving changes that require the table to be re-created." > > > martin > > > Martin WP Reid > Information Services > The Library at Queen's > Tel : 02890976174 > Email : mwp.reid at qub.ac.uk > Sharepoint Training Portal > ________________________________________ > From: dba-sqlserver-bounces at databaseadvisors.com [dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] > Sent: 02 February 2010 16:09 > To: Sqlserver-Dba > Subject: [dba-SQLServer] SQL Server 2008 - Changes made > > I am consistently getting an error "the changes you made would require the table to be dropped and > recreated". This seems to be pretty much ANY change to the table in design view. Is it my > imagination or did a lot of these changes used to be possible in SQL Server 2005? Is it something > else that I don not understand? > > -- > John W. Colby > www.ColbyConsulting.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Feb 2 10:53:55 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 02 Feb 2010 11:53:55 -0500 Subject: [dba-SQLServer] SQL Server 2008 - Changes made In-Reply-To: <631CF83223105545BF43EFB52CB08295467E27411E@EX2K7-VIRT-2.ads.qub.ac.uk> References: <4B684E24.8070807@colbyconsulting.com> <631CF83223105545BF43EFB52CB08295467E27411D@EX2K7-VIRT-2.ads.qub.ac.uk>, <4B68540D.9040307@colbyconsulting.com> <631CF83223105545BF43EFB52CB08295467E27411E@EX2K7-VIRT-2.ads.qub.ac.uk> Message-ID: <4B6858A3.3020206@colbyconsulting.com> It apparently somehow preserves the data yes? That is a cool trick, though of course as you mentioned, it would not be very efficient with large tables. John W. Colby www.ColbyConsulting.com Martin Reid wrote: > John > > It could cause problems with large tables such as those you are using. It drops and recreate the table. I think you are better using Alter Table > > Martin > > > Martin WP Reid > Information Services > The Library at Queen's > Tel : 02890976174 > Email : mwp.reid at qub.ac.uk > Sharepoint Training Portal > ________________________________________ > From: dba-sqlserver-bounces at databaseadvisors.com [dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] > Sent: 02 February 2010 16:34 > To: Discussion concerning MS SQL Server > Subject: Re: [dba-SQLServer] SQL Server 2008 - Changes made > > Thanks, that did it. > > What gremlins am I unleashing by doing this? > > John W. Colby > www.ColbyConsulting.com > > > Martin Reid wrote: >> John >> >> Try this >> >> "Within SQL Management Studio click on the Tools menu. Then Options, then the Designer node and uncheck the box that says: Prevent saving changes that require the table to be re-created." >> >> >> martin >> >> >> Martin WP Reid >> Information Services >> The Library at Queen's >> Tel : 02890976174 >> Email : mwp.reid at qub.ac.uk >> Sharepoint Training Portal >> ________________________________________ >> From: dba-sqlserver-bounces at databaseadvisors.com [dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [jwcolby at colbyconsulting.com] >> Sent: 02 February 2010 16:09 >> To: Sqlserver-Dba >> Subject: [dba-SQLServer] SQL Server 2008 - Changes made >> >> I am consistently getting an error "the changes you made would require the table to be dropped and >> recreated". This seems to be pretty much ANY change to the table in design view. Is it my >> imagination or did a lot of these changes used to be possible in SQL Server 2005? Is it something >> else that I don not understand? >> >> -- >> John W. Colby >> www.ColbyConsulting.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> _______________________________________________ >> dba-SQLServer mailing list >> dba-SQLServer at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/dba-sqlserver >> http://www.databaseadvisors.com >> >> > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From marklbreen at gmail.com Wed Feb 3 02:40:36 2010 From: marklbreen at gmail.com (Mark Breen) Date: Wed, 3 Feb 2010 08:40:36 +0000 Subject: [dba-SQLServer] SQL Server 2008 - Changes made In-Reply-To: <631CF83223105545BF43EFB52CB08295467E27411E@EX2K7-VIRT-2.ads.qub.ac.uk> References: <4B684E24.8070807@colbyconsulting.com> <631CF83223105545BF43EFB52CB08295467E27411D@EX2K7-VIRT-2.ads.qub.ac.uk> <4B68540D.9040307@colbyconsulting.com> <631CF83223105545BF43EFB52CB08295467E27411E@EX2K7-VIRT-2.ads.qub.ac.uk> Message-ID: Hello Martin, When you mention Alter Table, are you suggesting that instead of using the GUI, to instead issue the direct DDL command. If so, what you are saying is that alter Table can modify the table without dropping and re-creating, but the GUI cannot be as clever? Poor show by the GUI developers if thats the case. If the above is correct then may I mention here a handy tip. Have two instances of the db (or even a bak file) and then using one of the sql diff tools, that will generate a script that will give you the full required tsql. I guess the only thing to watch is does the sql diff tool also drop the table and create. Thanks Mark On 2 February 2010 16:42, Martin Reid wrote: > John > > It could cause problems with large tables such as those you are using. It > drops and recreate the table. I think you are better using Alter Table > > Martin > > > Martin WP Reid > Information Services > The Library at Queen's > Tel : 02890976174 > Email : mwp.reid at qub.ac.uk > Sharepoint Training Portal > ________________________________________ > From: dba-sqlserver-bounces at databaseadvisors.com [ > dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [ > jwcolby at colbyconsulting.com] > Sent: 02 February 2010 16:34 > To: Discussion concerning MS SQL Server > Subject: Re: [dba-SQLServer] SQL Server 2008 - Changes made > > Thanks, that did it. > > What gremlins am I unleashing by doing this? > > John W. Colby > www.ColbyConsulting.com > > > Martin Reid wrote: > > John > > > > Try this > > > > "Within SQL Management Studio click on the Tools menu. Then Options, then > the Designer node and uncheck the box that says: Prevent saving changes that > require the table to be re-created." > > > > > > martin > > > > > > Martin WP Reid > > Information Services > > The Library at Queen's > > Tel : 02890976174 > > Email : mwp.reid at qub.ac.uk > > Sharepoint Training Portal > > ________________________________________ > > From: dba-sqlserver-bounces at databaseadvisors.com [ > dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby [ > jwcolby at colbyconsulting.com] > > Sent: 02 February 2010 16:09 > > To: Sqlserver-Dba > > Subject: [dba-SQLServer] SQL Server 2008 - Changes made > > > > I am consistently getting an error "the changes you made would require > the table to be dropped and > > recreated". This seems to be pretty much ANY change to the table in > design view. Is it my > > imagination or did a lot of these changes used to be possible in SQL > Server 2005? Is it something > > else that I don not understand? > > > > -- > > John W. Colby > > www.ColbyConsulting.com > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-SQLServer mailing list > > dba-SQLServer at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > > http://www.databaseadvisors.com > > > > > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Feb 17 08:36:19 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 17 Feb 2010 09:36:19 -0500 Subject: [dba-SQLServer] Transpose rows for SQL Server Message-ID: <4B7BFEE3.5030107@colbyconsulting.com> I just found this in the newsletter. http://www.sqlservercentral.com/scripts/T-SQL/69443/ -- John W. Colby www.ColbyConsulting.com From jlawrenc1 at shaw.ca Wed Feb 17 15:57:48 2010 From: jlawrenc1 at shaw.ca (Jim Lawrence) Date: Wed, 17 Feb 2010 13:57:48 -0800 Subject: [dba-SQLServer] Transpose rows for SQL Server In-Reply-To: <4B7BFEE3.5030107@colbyconsulting.com> References: <4B7BFEE3.5030107@colbyconsulting.com> Message-ID: That could be handy, John. Jim -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, February 17, 2010 6:36 AM To: Access Developers discussion and problem solving; Sqlserver-Dba Subject: [dba-SQLServer] Transpose rows for SQL Server I just found this in the newsletter. http://www.sqlservercentral.com/scripts/T-SQL/69443/ -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 18 16:36:13 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 18 Feb 2010 17:36:13 -0500 Subject: [dba-SQLServer] Is anyone going? Message-ID: <4B7DC0DD.5080704@colbyconsulting.com> I will be attending this event. If anyone else on the list will be there and would like to meet up let me know. http://www.sqlsaturday.com/eventhome.aspx?tx=31X74719UC665143E&st=Completed&amt=10.00&cc=USD&cm=&item_number=&merchant_return_link=Return+to+Fourdeuce+Inc&form_charset=UTF-8 -- John W. Colby www.ColbyConsulting.com From bheid at sc.rr.com Thu Feb 18 19:53:52 2010 From: bheid at sc.rr.com (Bobby Heid) Date: Thu, 18 Feb 2010 20:53:52 -0500 Subject: [dba-SQLServer] Is anyone going? In-Reply-To: <4B7DC0DD.5080704@colbyconsulting.com> References: <4B7DC0DD.5080704@colbyconsulting.com> Message-ID: <000f01cab106$63139bb0$293ad310$@rr.com> The link does not tell us which event you are going to. Is this the event in Charlotte, NC on Mar 6th? Bobby -----Original Message----- From: dba-sqlserver-bounces at databaseadvisors.com [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, February 18, 2010 5:36 PM To: Access Developers discussion and problem solving; Sqlserver-Dba Subject: [dba-SQLServer] Is anyone going? I will be attending this event. If anyone else on the list will be there and would like to meet up let me know. http://www.sqlsaturday.com/eventhome.aspx?tx=31X74719UC665143E&st=Completed& amt=10.00&cc=USD&cm=&item_number=&merchant_return_link=Return+to+Fourdeuce+I nc&form_charset=UTF-8 -- John W. Colby www.ColbyConsulting.com _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Feb 18 20:34:11 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 18 Feb 2010 21:34:11 -0500 Subject: [dba-SQLServer] Is anyone going? In-Reply-To: <000f01cab106$63139bb0$293ad310$@rr.com> References: <4B7DC0DD.5080704@colbyconsulting.com> <000f01cab106$63139bb0$293ad310$@rr.com> Message-ID: <4B7DF8A3.5010404@colbyconsulting.com> Yes. Sorry, I thought the link was for the Charlotte event. John W. Colby www.ColbyConsulting.com Bobby Heid wrote: > The link does not tell us which event you are going to. Is this the event > in Charlotte, NC on Mar 6th? > > Bobby > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 18, 2010 5:36 PM > To: Access Developers discussion and problem solving; Sqlserver-Dba > Subject: [dba-SQLServer] Is anyone going? > > I will be attending this event. If anyone else on the list will be there > and would like to meet up > let me know. > > http://www.sqlsaturday.com/eventhome.aspx?tx=31X74719UC665143E&st=Completed& > amt=10.00&cc=USD&cm=&item_number=&merchant_return_link=Return+to+Fourdeuce+I > nc&form_charset=UTF-8 > From jwcolby at colbyconsulting.com Thu Feb 18 20:35:39 2010 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 18 Feb 2010 21:35:39 -0500 Subject: [dba-SQLServer] Is anyone going? In-Reply-To: <000f01cab106$63139bb0$293ad310$@rr.com> References: <4B7DC0DD.5080704@colbyconsulting.com> <000f01cab106$63139bb0$293ad310$@rr.com> Message-ID: <4B7DF8FB.2060200@colbyconsulting.com> Let's try it again. http://www.sqlsaturday.com/33/eventhome.aspx John W. Colby www.ColbyConsulting.com Bobby Heid wrote: > The link does not tell us which event you are going to. Is this the event > in Charlotte, NC on Mar 6th? > > Bobby > > -----Original Message----- > From: dba-sqlserver-bounces at databaseadvisors.com > [mailto:dba-sqlserver-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Thursday, February 18, 2010 5:36 PM > To: Access Developers discussion and problem solving; Sqlserver-Dba > Subject: [dba-SQLServer] Is anyone going? > > I will be attending this event. If anyone else on the list will be there > and would like to meet up > let me know. > > http://www.sqlsaturday.com/eventhome.aspx?tx=31X74719UC665143E&st=Completed& > amt=10.00&cc=USD&cm=&item_number=&merchant_return_link=Return+to+Fourdeuce+I > nc&form_charset=UTF-8 > From sdunlap at brownshoe.com Wed Feb 24 13:41:18 2010 From: sdunlap at brownshoe.com (Stuart Dunlap) Date: Wed, 24 Feb 2010 13:41:18 -0600 Subject: [dba-SQLServer] Remove password on an SSIS package - SQLServer 2005 Message-ID: <046F3F2146A0E941BE7F7F2F2A63A3CC7DDEBFBABC@VSTLEXMAIL-PRD.FF.FFBS.NET> Hi, I have an SSIS package that I created via the SSIS wizard. On the step in the wizard called 'Save and Execute Package' there was a section in the dialog box called 'Package Protection Level:' with a drop down option. For this option I selected 'Encrypt sensitive data with password' and I entered my password. I have now decided that I would like to remove the password from the package. Is there any way I can do this? I can open & execute the package, and I can edit the package...but I want to get rid of the password. I don't use SQLServer 2005 that often and I can't figure it out. Any insight is appreciated. Thanks, Stuart From fhtapia at gmail.com Wed Feb 24 14:01:59 2010 From: fhtapia at gmail.com (Francisco Tapia) Date: Wed, 24 Feb 2010 12:01:59 -0800 Subject: [dba-SQLServer] Remove password on an SSIS package - SQLServer 2005 In-Reply-To: <046F3F2146A0E941BE7F7F2F2A63A3CC7DDEBFBABC@VSTLEXMAIL-PRD.FF.FFBS.NET> References: <046F3F2146A0E941BE7F7F2F2A63A3CC7DDEBFBABC@VSTLEXMAIL-PRD.FF.FFBS.NET> Message-ID: connect back to management studio... (integration services) locate your package, export package to server again choose protection level: Do not save sensitive data -Francisco http://sqlthis.blogspot.com | Tsql and More... On Wed, Feb 24, 2010 at 11:41 AM, Stuart Dunlap wrote: > Hi, > > I have an SSIS package that I created via the SSIS wizard. On the step in > the wizard called 'Save and Execute Package' there was a section in the > dialog box called 'Package Protection Level:' with a drop down option. For > this option I selected 'Encrypt sensitive data with password' and I entered > my password. > > I have now decided that I would like to remove the password from the > package. Is there any way I can do this? I can open & execute the package, > and I can edit the package...but I want to get rid of the password. I don't > use SQLServer 2005 that often and I can't figure it out. > > Any insight is appreciated. > > Thanks, > Stuart > _______________________________________________ > dba-SQLServer mailing list > dba-SQLServer at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-sqlserver > http://www.databaseadvisors.com > >