Forum Replies Created

Viewing 15 posts - 121 through 135 (of 1,048 total)

  • RE: Need Deadlock troublehshoot help

    Thanks for the additional info. PK clustered on a varchar() column (a GUID no less) and 12 non-clustered index.

    There are probably some FKs in the table as...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Need Deadlock troublehshoot help

    can you provide the table and index definitions?

    Is there a trigger on the table?

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Date in BCP out file name

    gmac 41947 (2/21/2013)


    If I insert variable in SQL JOB Step, the JOB exec stopped with error.

    When I insert throughout code (variables, bcp command...) in .bat file, and I reference this...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: database security

    Once your data is on someone's computer your data is no longer protected from others.

    I would recommend encrypting the important data items and develop a key management scheme that would...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Date formatiing

    add those minutes to a date @ 00:00:00 hrs then format as a time. As an example:

    declare @mins int

    set @mins = 150

    select convert(char(5),dateadd(minute,@mins,'01/01/2013'),108)

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Export SQL data to a file

    You should use bcp utility. It is included as apart of every SQL Server installation. It is a command line utility, you specify what data is to be exported...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Runnable query - waiting for what?

    brad.blackburn (2/20/2013)


    I would like to add to this question. I have something similar (except for all the joins). A program on this one computer shows that a single...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Runnable query - waiting for what?

    The chances of you seeing other processes in "runnable" state is quite high since your process (sp_who2 or something) is currently consuming CPU time.

    Remember the old adage: "A watched pot...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Permissions issue upon a restore

    yes I can, but from what you are describing, scripting out the roles and permissions from production and executing it on the dev server will not give you what you...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Date in BCP out file name

    Jeff Moden (2/20/2013)


    Can you think of a way to have the date come out in the ISO format of YYYYMMDD to support sortable file names using the batch commands?

    didling with...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Permissions issue upon a restore

    I have proc that will script out all the users, roles and their permissions if you want it.

    But I would make two other suggestion which would be simpler:

    1) import the...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: datatype for such a long integer

    insert into testing

    select '16456456456456456456456456456456546546456456456456456456'

    union select '2'

    union select '11'

    union select '1'

    select * from testing

    order by len(big_number), big_number

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Date in BCP out file name

    you are running bcp from a shell, so get the current date (M/D/Y) part into a variable:

    set DATEVAR=%DATE:~4,10%

    as part of a filename you probably want to change the / ...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Error reading a csv (already open in Excel) using SSIS

    push another copy of the file over for SSIS to use.... or push another copy over for users to look at.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: error in bulk copy

    I would use -N option (native mode) for what you are doing instead of -c

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 15 posts - 121 through 135 (of 1,048 total)