Forum Replies Created

Viewing 15 posts - 10,576 through 10,590 (of 13,460 total)

  • RE: Dabase User Defined Role

    Chandhini (9/1/2009)


    Hi,

    In my Database, i need to create two different roles to access the db. one is for application and the other one is for development.

    For application -...

    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: nvarchar to binary conversion in sql server

    here's the example i always reference from my snippets:

    DECLARE @var VARBINARY(128),

    @res NVARCHAR(64)

    SET @var = CAST(N'Hello World' AS VARBINARY(128))

    PRINT @var

    --results: 0x480065006C006C006F00200057006F0072006C006400

    SET @res =...

    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: Foreign Key Relationships to a Compound Primary key

    i don't use complex foreign keys , but here is an example i whipped up for the syntax:

    this foreign key references two columns in the parent table...limit is 16 i...

    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: Record Length

    gboyer (8/31/2009)


    All,

    I am trying to find a count on all records in a table that have more the 2 numbers after the decimal point in an Amount Column. The field...

    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 Update Multiple Occurrences Of A String In A Text Column (ntext)

    Scott Solice (8/31/2009)


    I have an ntext column that contains the full text of an rdl object. I need to update every occurrence of Parameters!AnyParm.Value with Parameters!AnyParm.Label.

    I could use Replace, Stuff,...

    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: Can I make it efficient????

    give us more info,

    sounds like the query is big, so

    save the actual query as a text file, and show us the estimated execution plan, saved as a .sqlplan file....

    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: Help with dealing with ugly database threads.

    is there a performance problem or something that really requires those threads to be killed, or is it something you noticed and it bothers you?

    a sleeping thread is not necessarily...

    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: Our web application connecting to SQL Server is slow for a moment

    not enough information to give anything but a generalized guess;

    There's two obvious places there is a slowdown :

    if your web pages are in .NET, they are not compiled/loaded into memory...

    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: Convert VChar(100) to GUID in a stored proc

    Faye Fouladi (8/31/2009)


    I have a classic asp page that is accessed via different pages. In some situations the:

    Request.QueryString("Contract_ID") is a vchar(100) and sometimes is coming a GUID.

    When it is vchar(100)...

    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: script to create indexes existing in a database

    here's one I use that was posted by Jesse Roberge ; note this one features the 2005 option where you can INCLUDE other columns in the page data so it...

    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 password change script ?

    well there are two ways to do it via TSQL;

    the preferred way is like this:

    ALTER LOGIN Victoria WITH PASSWORD = 'B3r1000d#2-36';

    the old procedure sp_password can be used as well,a t...

    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: convert julian date to standard date format

    I'd seen this before;

    here's how i've done it, and i broke it down to help everyone understand.

    the way it works is the first 3 digits is the century julian offset,...

    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: Good books (advanced) on query optimization/tuning

    Grant Fritchey, who contributes a ton of time helping people here on SSC wrote a couple of ebooks that you can download for free right here on SSC:

    SQL Server...

    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 Dataset 1 to Dataset 2 to make Dataset 3

    Glad my example worked out for you;

    sometimes it's the forest and the trees...hard to see the solution until you step back a bit.

    i saw you are using functions that return...

    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 execute server-level commands without Server admin rights

    would something like this be a good idea to create a stored procedure with those commands, and have EXECUTE AS with sysadmin rights, then grant rights to the proc for...

    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 - 10,576 through 10,590 (of 13,460 total)