Forum Replies Created

Viewing 15 posts - 781 through 795 (of 13,469 total)

  • RE: Can I have a default table value based on another column???

    yes, but you need a case statement to bulletproof the calculation for data shorter than your assumption.

    CREATE TABLE EXAMPLE (

    ExampleId int IDENTITY(1,1) NOT NULL PRIMARY KEY,

    MyColumn varchar(30)

    )

    INSERT INTO EXAMPLE(MyColumn)

    VALUES( ''),('1234567890')

    ALTER...

  • RE: Error with parameters in OLEDB Source "execute with results"

    komal145 (12/8/2016)


    hi All,

    I have a package , where i get the results from a storedprocedure and send it to a file.

    meaning OLED source ( sql command) ---> Flatfile.

    Pacakge runs...

  • RE: DBA without sa rights???

    wow, I've heard of petty turf wars like this happening.

    You've got to bring it all out in the open, with your DCD and all related supervisors; this is not the...

  • RE: recursive query to find out orphans

    CELKO (12/6/2016)


    Correct minor typos:

    CREATE TABLE Forest

    (node_name VARCHAR(20) NOT NULL PRIMARY KEY,

    lft INTEGER NOT NULL CHECK (lft > 0),

    rgt INTEGER NOT NULL CHECK (rgt > 1),

    CHECK(lft < rgt));

    INSERT INTO Forest

    VALUES

    ('Root',1,8),

    ('first child...

  • RE: Issue using sp_send_dbmail for CSV export

    there is another parameter, @query_result_width, which i think is a default of 80 or 100, and anything wider wraps, which is what you are seeing

    set it to a large number,...

  • RE: Problem configuring Database Mail

    just read and work through your errors; you seem to be changing stuff pretty quick to try and get it to work.

    your latest error is just because you checked the...

  • RE: Problem configuring Database Mail

    the error message you pasted was

    The server response was: 4.3.2 Service not available,

    which would be an SMTP service exists, but is not available.

    so the issue is not database mail, but...

  • RE: Automate stored credentials updates

    the obvious fix is to set up a specific account for the SSRS account that does not password expire.

    on my SSRS instances, all reports use shared data sources, so...

  • RE: SchemaName.ObjectName

    yes it could potentially cause problems. best practice would be to go ahead and schema-qualify all the scripts provided to avoid any issues.

    The scenario i would worry about is if...

  • RE: How to compare text in sql server

    so I'm assuming you want a soft fix to the issue, where you are detecting and maybe truncating in the trigger to make it no more than 200 characters, even...

  • RE: 16 core and sql server enterprise license cost

    nal4236 (12/3/2016)


    Sounds like we're basically saying the same thing, we're just getting caught up in terminology. You cannot buy a single SQL Enterprise license that covers one single CPU core....

  • RE: Login triggers - some general questions...

    does that trigger actually work for a non-sysadmin?

    looks like you are just logging offenders, and not denying their connection.

    any login would need insert permissions on insert master.dbo.CheckLogins , is that...

  • RE: Check if File exist - Script Task

    put your code in a try catch, and explicitly bubble up any errors that might occur;

    you'll get a better error description than you are currently receiving:

    public void Main()

    {

    [highlight="#ffff11"]try

    ...

  • RE: Check if File exist - Script Task

    Appending strings together to make a filename is tricky; if you are not careful/consistent with ending slashes, you'll get invalid paths.

    i would suggest using Path.combine to handle that issue...

  • RE: Passing temp table from one stored procedure to another

    If a Procedure calls another procedure INSIDE it's code, any #temp tables are available to it that exist in the procedure;

    if the procedures are called consecutively, then the temp...

Viewing 15 posts - 781 through 795 (of 13,469 total)