Forum Replies Created

Viewing 15 posts - 4,876 through 4,890 (of 6,486 total)

  • RE: Adding column of data to flat file to SQL table SSIS

    If you're just looking for the literal PC, then your expression just needs to be "PC" (with the quotes included). SSIS uses double-quotes, so using the snigle-quotes will get you...

  • RE: Solving the "Running Total" & "Ordinal Rank" Problems in SS 2k/2k5

    Jeff Moden (2/5/2008)


    It IS a cool solution... Wasn't so good in the performance department on my machine, though... it took 29 minutes to do the million row example on my...

  • RE: Unable to Truncate 200GB Log

    then try the COMMIT? you should at least TRY to commit said transactions.

    you'd have to run it twice )once per transaction still open. The second one might take...

  • RE: SQL Server Agent not restarting

    Try checking the following:

    - under Control Panel, Admin tools, services - double-check to see what the service account is for SQL Agent. That account needs to be able...

  • RE: Creating sql tables thru scripts or stored procedures

    Assuming you're using an identity field as your PK, use

    DBCC CHECKIDENT('mytable',RESEED,1)

    will reset this back to 1

    Note that you only need to do that if you use DELETE from mytable. ...

  • RE: pro and con about foreign key constraint

    Michael Valentine Jones (2/5/2008)


    iceheartjade (2/5/2008)


    Hi, all

    ...no bad value will be insert into the tables...

    I guess your organization, unlike where I work, has developers that never make mistakes.

    Even if they're perfect...

  • RE: Top N plus

    antonio.collins (2/5/2008)


    the query that produces our 22K row ranked result set takes 150s. i was looking for some top N wizardry to cajole the query engine to skip producing...

  • RE: Loading data from Flat File to a database

    The big question is - how would you correlate the rows without SSIS? How would you relate data from today to data from yesterday, row-by row? Something has...

  • RE: finding maximum concurrent events

    Think of using the tally table has merit, but I'm thinking your using that hammer on the wrong kind of nail.

    How about populating a temp table with a minute by...

  • RE: Running total by period

    Fully agree with GSquared. The correlated sub-query won't scale well, so if your data gets big it will start to choke on performance.

    That being said - you want to...

  • RE: Adding column of data to flat file to SQL table SSIS

    That's certainly one way to do it! Depending on what you're doing - might also be a lookup (for data from another table) or data conversion (string-->numeric for example)

  • RE: Insert Script for all the tables in a database

    you can get SSMS to script them all by using the Generate scripts option under "all tasks". Simply right-click on the DB name to get started.

  • RE: RÍO GRANDE

    I usually am "dipped" in it by this time of day....and it ain't smelling pretty today....

    Glad that helps!

    One warning though - it seems to do some interesting things...

  • RE: can PIVOT command transpose rows into columns

    If the family+depcode generates duplicates, then no- PIVOT will aggregate them out. You'd also have to concatenate the first and last names together, since PIVot will only do one...

  • RE: How to pass multi-row table data into stored proc

    CROSS or OUTER APPLY with TVF's is basically a correlated sub-query in disguise. So - not incredibly bad if the sets are small, but still not as good as...

Viewing 15 posts - 4,876 through 4,890 (of 6,486 total)