Forum Replies Created

Viewing 15 posts - 5,311 through 5,325 (of 13,460 total)

  • RE: Production issue with varchar(max)

    Check your data type on any parameters ,whether in a proc or n the code in your application.

    Ive stepped in that myself where a parameter fornmy sqladapter was the wrong...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to use scalar valued function in select statement

    and here's another way just using a sub select instead of the function:

    note to self: That cross apply stuff is kewl, need to use it more.

    SELECT PS.LineGUID AS LINE_GUID,

    PS.PODSID,...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Application stored in SAN Drive

    what do you mean by application?

    YourBusinessApp.exe, or do you mean the database the app connects to?

    performance typically has a lot more to do with the queries being performed, and the...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: sql server 2005

    anthony.green (6/25/2012)


    Hi, Welcome to SSC.

    Please follow the second link in my signature on posting code so that we can help you out further.

    careful there! the knee jerk reaction for DDL...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How does one improve the performance of a "colA > colB" query?

    a query with Column1 > Column2 best plan is going to be a index scan, right? it has to use the index to get all values greater than to match...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: xp_cmdshell Issue

    as far as i know, the EXECUTE AS must use a user for permissions, so you'd need to add that superUser as a user so that you can use the...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: xp_cmdshell Issue

    i end up creating a special login/user for the whole execute as stuff:

    it works well for me.

    --first we need a sysadmin role with no login, which will beused

    --for execution context...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Adding AD group to a db role

    two minor syntax issues;

    the first is missing the single quote after "SSN_GRANTED"

    EXEC sp_addrolemember N'SSN_GRANTED', N '[T001371\ViewSSN]'

    and for both commands, there cannot be a space between the N and the single...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Adding AD group to a db role

    well it's a syntax issue, i'd guess you are missing something compared to my working example. the leading N or a single quote, or something.

    Can you post the EXACT command...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: xp_cmdshell Issue

    Laura it's probably permissions;

    since xp_cmdshell requires elevated permissions, try adding EXECUTE AS and see if that resolves it:

    --the EXECUTE AS must be a user in the database...not a login

    CREATE...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to embed image with text in SSRS

    OK this was a fun proof of concept again.

    building an image out of text on the fly is going to require programming;

    i'm not an SSRS guy, but i can...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Alternate to xp_cmdshell

    there's a different proc for that:

    in this example, you'd change '[~~]' to '|':

    take a look at the documentation, i think i fleshed it out with a lot of examples;

    http://sqlclrexport.codeplex.com/documentation

    EXECUTE...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Alternate to xp_cmdshell

    where the heck did i put my jump to conclusions mat?

    mea culpa, i would have sworn i read import via BCP/xp_cmdshell. it was the "This query works fine to import...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: Alternate to xp_cmdshell

    well, BULK INSERT and BCP -IN both have some big assumptions: the file is on/accessible from the server itself, and of course permissions on both the destination table and...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

  • RE: How to determine when column stats are updated?

    I don't think when a statsitic has been updated/created is exposed;

    however, you can use a formulat to determine if any existing statistics ned to be updated ro not;

    I slapped this...

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!

Viewing 15 posts - 5,311 through 5,325 (of 13,460 total)