Forum Replies Created

Viewing 15 posts - 211 through 225 (of 295 total)

  • RE: sqlcmd using -Q query can only be 128 characters

    You could use OSQL to run a script, where the script could be as big as you want ie:-:-

    EXEC master..xp_cmdshell 'osql -E -S Servername-d master -l 100 -i "D:\script.sql" -o...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Issue with changing recovery model of DB before taking tran log bkup

    See http://msdn2.microsoft.com/en-us/library/aa173551(SQL.80).aspx

    "Restoring a database using both database and transaction log backups works only if you have an unbroken sequence of transaction log backups after the last database or differential...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Issue with changing recovery model of DB before taking tran log bkup

    If I ever alter the recovery model to Full from Simple the first thing I do is take a full backup, before even thinking of taking a log backup, simply...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Explicit Permissions

    Excellent that's just what I wanted.

    Thanks

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Explicit Permissions

    Not my idea but yes I've been asked to do just that, I know its meaningless but it's what they want to do.

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Insert Statement

    How are you trying to enter the data? Are you inserting into the Primary Table first?

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Explicit Permissions

    I want to be able to explicitly deny access to the full range of schema roles ie:-

    ALTER ANY APPLICATION ROLE

    ALTER ANY ASSEMBLY

    ALTER ANY ASYMMETRIC KEY

    ALTER ANY CERTIFICATE

    ALTER ANY CONTRACT

    ALTER ANY...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Explicit Permissions

    I am trying to deny access at schema level - Don't ask why!!! Your script doesn't list the permissions not already given, so I can't get the list from...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Sql Server Error Handling

    BEGIN TRAN

    DECLARE @intErrorCode INT

    --Some code

    /* check to see if we had an error and if so goto the error handler and rollback the transaction */

    SELECT @intErrorCode =...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: permissions

    Spookily enough I'm working on a security script as I write.

    DECLARE @Database sysname, @sql varchar (max)

    SET @Database = db_name()

    SET @sql = 'SELECT ''GRANT EXECUTE ON ''+ [Name] + ''...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Removing those extra spaces when exporting to Text File

    ltrim or rtrim strips spaces L eft or R ight of the field

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Appending column data ex: col1Value, col2Value, col3Value

    Look up Cross Tab Reports in BOL

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Could not allocate space for object 'MSmerge_tombstone' in database ' ' because the 'PRIMARY' filegroup is full.

    Look at the space on the drive where your PRIMARY filegroup resides, and filespace on drive where the tempdb files reside.

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: Strange error on Server Log

    I have seen this error before and it was because of other activity on the server at the time the backup was run, it could not find enough virtual memory...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

  • RE: using muliple conditions HELP

    Your syntax is wrong from BOL:-

    SELECT au_fname, au_lname,

    CASE state

    WHEN 'CA' THEN 'California'

    WHEN 'KS' THEN...

    Facts are stubborn things, but statistics are more pliable - Mark Twain
    Carolyn
    SQLServerSpecialists[/url]

Viewing 15 posts - 211 through 225 (of 295 total)