PowerShell

Technical Article

RE: moving to new server, what to do with connection strings

  • Reply

If your application was written correctly in the first place then you would only have to make the change ONCE in yolur application!One correct way of doing this properly the first time is to create a module with connection string in it and make it Public, then you could just call that module anywhere in […]

2004-03-22

Technical Article

RE: How can I commit more frequently?

  • Reply

here is what I mean: declare @a int, @b intset @a=0set @b = select count(*) from tablenamewhile @a <= @bupdate table where key >= @a and key < @a+ 1000set @a = @a+1000  --commit every 1000 rowloop We could commite the row every row or every so many thousand row depending on how you want to set it […]

You rated this post out of 5. Change rating

2004-03-16

Technical Article

Open Files to execute SQL

  • Topic

We need to have a script that will open files in a directory and all sub-directories and execute the sql in each file. I have a start on such a script but I was wondering if anyone has a solution that I am unaware of, or if a script exists on this site that I […]

2004-03-15

7 reads

Technical Article

RE: HELP!!!!!! Need to move sql 7 from NT box to NT box

  • Reply

I've done this before...Like This:1.  Shut down the SQL Services MSSQLSERVER and SQL Server Agent on both boxes.2.  COPY the database files (.mdf .ndf, .ldf) from old server to new server, placing them in the same directory names on new server.  Master and msdb should overwrite on new server, and tempdb doesn't need to be […]

2004-03-11

Technical Article

RE: Tie Scheduled Job to DTS Package

  • Reply

Here is an easy way to accomplish this. Right-click on each DTS package and schedule each separately into three SQL Server Agent jobs. Then look at the step properties for each of the SQL Server Agent jobs you just created, copying and pasting the DTS command from each into a new SQL Server Agent job […]

2004-03-11

Technical Article

RE: Worst Practice - Not Qualifying Objects With The Owner

  • Reply

I have accepted this recommendation due to the performance impact, and don't argue that.  But I find that this has killed for me the utility of object-ownership in general.  Has anyone made good use of object ownership since following this "always owner-qualify object references" guideline?  I haven't.  Just an extra "dbo." that I have to add everywhere--more typing with no benefit.   But back […]

2004-03-10

Technical Article

RE: FillFactors

  • Reply

There is undocumented stored procedure available to achive you needs, I personally use it often:EXEC sp_MSforeachtable @command1="print '?' DBCC DBREINDEX ('?', '',  80)" The proc will reindex everything with fullfactor = 80 in this case.Julia

You rated this post out of 5. Change rating

2004-03-05

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers