Forum Replies Created

Viewing 15 posts - 526 through 540 (of 1,344 total)

  • RE: Unable to create temporary tables inside functions

    The temp table is only your first problem.

    I don't think you can call function from functions either.

     

    Use derived table.

    Select count(*)

    from (Select field

            From mytable

            where Foo = 'Somevalue'

            ....) As T

  • RE: consolidating data files

    The way I can think of

    is create a new filegroup, and a new file.

    then move all objects from old filegroup to new one. Drop the old one.

     

  • RE: Parsing XML through Stored Procedures

    Your going to have to restructure your xml.

    as you have under column you have a element named coldata when parsing xml since the names are the same sql does not...

  • RE: Error converting data type varchar to bigint

    Your concatenating all fields together. I'd bet one of those fields is a bigint. and when concatenating to a string you need to cast it into a string first.

    Double check...

  • RE: How to use DTS in sql server 2005

    It is in the Business intellegence studio,

    but it is no longer called DTS

    Its called Integration Services.

    They completely re wrote it. It works completely differently than dts now.

    http://www.sqlis.com/

    for Tutorials and...

  • RE: Setting security users and permissions

    Sorry, Your using access, I missed that part.

     

  • RE: MySQL to MSSQL translation?

    try this

    SELECT WRid, WRenteredDate, WRcurrentStatus, WRclaimNumber, WRstatusUpdated, WRsendToID, WRbillToID, WRrequestorID,

    IsNull(sendto.COcontactNameLast,'NA') AS 'Send To',

    IsNull(billto.COcontactNameLast,'NA') AS 'Bill To',

    IsNull(req.COcontactNameLast,'NA') AS 'Client Rep',

    , coalesce(PayDay,(DEaltKeyValue * 1), 0.00) as totPaid

    , case WRcurrentStatus when 110 then...

  • RE: Msg 8152, Sev 16: String or binary data would be truncated. [SQLSTATE 22001]

    Wierd,

    if the same parameters are run from QA and when it was run in agent, I'd expect the same error.

    QA should capture the same error as agent.

    you still may have...

  • RE: Setting security users and permissions

    I do not believe there is a way to do this.

    The user granting privileges must have access to the database, There is no way for a user to grant themselves...

  • RE: Multi Parameter

    Sure, but you'll have to put the relationships into a table, or inside of a stored procedure so you can use the query value.

    This tutorial does it, but its example...

  • RE: Msg 8152, Sev 16: String or binary data would be truncated. [SQLSTATE 22001]

    That error message indicates that your trying to put a value into a table that exceeds the data type, and or length.

    For example your trying to stuff a 60 character...

  • RE: MySQL to MSSQL translation?

    Something is missing

    in the mssql query your using a case statement to supply a value for DEaltKeyValue, it does not look like your outputting the same amount of columns.

    Also structuring...

  • RE: SELECT MIN Rank

    Wait: I just reread your post

    Is user Rank a value you have in the view?

    Is this what your looking for?

    select UserID, ProjectID, User_Name, min(User_Rank) as User_Rank

    from Myview

    Group by UserID, ProjectID,...

  • RE: Distribution Agent Question

    It uses system stored procedures, and in the Replication databases it keeps track of the transactions sent. Are you trying to do something specific, or were you just curious? Or are...

  • RE: Data space used report

    Do a search on this site for Space used. there are quite a few articles, and scripts to help do your work.

    This is the first to show in articles. It...

Viewing 15 posts - 526 through 540 (of 1,344 total)