Forum Replies Created

Viewing 15 posts - 6,811 through 6,825 (of 13,460 total)

  • RE: permissions to view stored procedures

    you'll want to give VIEW DEFINITION to them;

    --at the database / schema level

    Grant View Definition ON SCHEMA::[dbo] To [AlmostOwners]

    --at the database level

    Grant View Definition To [AlmostOwners]

    --at the Login level in...

    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 UTC datetime to LocalTime Zone.

    i think you can find it by getting a datediff in hours (or minutes, as some time zones are different by half hours)

    and then add that diff to your utc...

    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: Ability to Track Changes Across Multiple Tables

    there is a project on codeplex i briefcased that allows you to add a CDC equivilent to plain old SQL 2005/2008, stadnard editions , so you don't need Enterprise...

    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 retrieve the max character on a text field?

    you can use the LEN() or DATALENGTH() functions:

    SELECT max(DATALENGTH(TheTextField)) As MaxDataLength FROM

    TheTable

    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 retrieve the max character on a text field?

    SQL ORACLE (9/6/2011)


    Many thanks in advance?

    by max character you mean the highest ASCII value? like 'A' = 65 and 'a' =97?

    so the highest "char" in 'bananas' is 's' with an...

    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: sp_executesql problem

    tough to diagnose without the whole, testable code...

    there's a table variable that's missing, and the declaration and assignment of the @Counter is missing...it does get assigned the value of...

    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: Strange comparison results ³ seems to equal 3

    pretty interesting; for one specific collation, i ran this query and got a lot of interesting results...A=À with an accent, for exmaple. I'd seen this before, good to be aware...

    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: Stored Procedure Does not exist, what yes it does

    Carlton Leach (9/6/2011)


    Does the dbo schema own the stored proc?

    Carlton..

    I was thinking along the same lines...it might not be owned by dbo:

    select

    schema_name(schema_id) as SchemaName,

    name...

    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: Login failure

    the default database assigned to the login CORP\shilpa was dropped; change it to master adn try to log in again.

    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: Restore the Database ask Username and Password

    you can't.

    once a person connects to SQL server, additional verifications are not possible from SSMS.

    So if they have permissions to perform a a backup or a restore, you can't make...

    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: Looking for help taking the RBAR from this problem

    how does a row number example perform?

    SELECT

    Server_Id,

    Data_Timestamp

    FROM

    (SELECT

    ROW_NUMBER() OVER (PARTITION BY Server_Id ORDER BY Data_Timestamp DESC) AS RW,

    ...

    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: Invalid-object-name-mytemptable

    just a copy paste error...you left the column name attached to teh table name:

    Insert into #FullDataGrid

    Select '', createdtotal,'','',''

    from #datecreated

    INNER JOIN #DateCreated.CreatedDate

    on #MasterDate.Date = #DateCreated.CreatedDate;

    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 rollback works in sql server?

    wow...changing that setting that i posted the screenshot of is SUCH a bad idea in SQL server.

    testing that, i updated one row in a table, and saw i got...

    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: update the date field in a table after each update

    to follow up on what Pablo said, here's a simple example:

    CREATE TABLE WHATEVER(

    WHATEVERID INT IDENTITY(1,1) NOT NULL PRIMARY KEY,

    DESCRIP VARCHAR(30)

    )

    INSERT INTO WHATEVER(DESCRIP)

    SELECT 'APPLES' UNION

    SELECT 'ORANGES'...

    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: Table backup

    even a filegroup backup might not be all you need; if all the tables are backup up in a file group, and then a change occurs to one of them,...

    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 - 6,811 through 6,825 (of 13,460 total)