Forum Replies Created

Viewing 15 posts - 7,861 through 7,875 (of 13,460 total)

  • RE: Script to grant user permission

    well adding a user and granting permissions are a three part process.

    first you really needed to already have a ROLE in your specific database that has the permissions you want...

    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: Discovering Table Order Precedence

    yes, there is a built in stored procedure that will give the hierarchy of the schema based on foreign keys and dependencies.

    this is what i typically use:

    ...

    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: synonyms' for multiple sql instances in my procedure

    your if statement stuff would work, absolutely;

    what i was implying, is you could possibly rebuild the synonym every time, something like this:

    --Usage EXEC GetData 'SERVERNAME'

    Create Procedure GetData(@WhichServer varchar(30))

    AS

    BEGIN --PROC

    ...

    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: synonyms' for multiple sql instances in my procedure

    whole (3/25/2011)


    hi,

    i would like to create a synonym for all my sq server instances. which i can use them in my procedure to reference.

    but my question is...

    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: Syntax error

    I'm sure dan is right...you can only test for a single value in the IIF condition, so you need nested IIf's to do the OR:

    =iif(Parameters!PUBLICATION.value = 304,round(Fields!LASTWEEK.Value/5),IIF(Parameters!PUBLICATION.value = 305,round(Fields!LASTWEEK.Value/5),round(Fields!LASTWEEK.Value)

    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: Need Cascade Delete like Stored Procedure

    very similar to your other thread; not sure why you want to dynamically delete stuff, but here's an ugly example.

    right ow, this is only printing the commands it might 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: how to replace multivalue

    diboy79 (3/25/2011)


    my bank has change their account from 5 digit to 8 digit.

    every account has been changed by adding '212' in the end of account number.ex:

    11111 ----> 11111212

    22222 ---->...

    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: Port number for SQL server service status

    i thought avoiding the use of 1433 was to avoid brute force attacks to discover passwords....script kiddies or worse.

    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: php call to db results in premature exit from sp

    it looks like your procedure is recursively calling itself, correct? you might be hitting the max number of nesting levels or something;

    I'm not sure what the proc is doing exactly...

    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: php call to db results in premature exit from sp

    dioscoredes (3/25/2011)


    ==>>what is the proc doing?

    inserting a single row into a small table repeated

    maybe 100 times. The proc quits silently after say 20

    inserts. Tinkering shows any DML causes the premature...

    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: php call to db results in premature exit from sp

    what is the proc doing? if the proc is accessing anything outside of the database, it might be stopping/erroring due to permissions..you mentiond something about sqlcmd to fix stuff;

    maybe when...

    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 implement in SQL Server Multi User Parallel Access system

    ok, here's a crappy example schema i slapped together, just as an example.

    if you step thru to the end, you'll see that the view at the end will always have...

    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 implement in SQL Server Multi User Parallel Access system

    SQL handles concurrency very well and automatically; it automatically locks a row of data for the milliseconds it takes to update the row, releasing the row as soon as 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: How to change Property of SQL SERVER'S INSTANCE

    And if the database is read only, you'll have to change it, change the collation, then change it back to read only again

    Right click Dtabase....Properties

    Select "Options" and scroll to 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: how to populate child dependecies for an object or any table type.

    malleswarareddy_m (3/24/2011)


    You guessed correct .I need a recursive cte but am getting dependencies using dynamic management function.

    but it is not supporting to write the code for recursive ctes .

    for example...

    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 - 7,861 through 7,875 (of 13,460 total)