Forum Replies Created

Viewing 15 posts - 6,436 through 6,450 (of 13,460 total)

  • RE: Auto fix orphaned users

    is there a question in there somewhere?

    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 track which record got update in table

    another example:

    Create Trigger TableName_Insert On TableName For Insert As

    Update Tb

    Set tb.date_created = GetDate()

    From TableName Tb

    Join Inserted i on...

    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: select just one url from each domain in url_list

    thank's Ninja; your example made me realize the third slash ends the domain....

    here's my example again tweaked with that realization: this will work for any domain extention now

    ;With URL_LIST(Id,url)

    AS

    (

    SELECT '1','...

    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: select just one url from each domain in url_list

    ORDER BY newid() is the way to get randomized data.

    you've got to do a few things: first, extract the domain from the urls...in my example, as long is everything...

    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 Runtime error - Transaction count mismatch

    is there a trigger on the real table represented by "table1"?

    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 question - Compile vs runtime

    for objects...tables,procs or views, a feature of stored procedure is delayed name resolution...of the object doesn't exist at creation time, it still compiles, but will fail at execution time.

    so you...

    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: permissions to sp / table

    in that case, for that one specific proc, you want that proc to execute as some advanced user ,that really would have access to ADO or the linked server.

    then 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: Apply same password for SQL and Windows logins

    you cannot retreive the password;

    but you can pass the crendentials from the domain to the SQL server(is the SQL server on the domain?)

    you would get rid of your SQL logins...

    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: Importing txt File into SQL Server

    if you can install a CLR, that's the way to go; there a re a number of examples out there ,

    i personally like fellow poster Elliot Whitlow's contribution on http://nclsqlclrfile.codeplex.com/

    one...

    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: Supress right click - report viewer

    it's "kind of" possible with some javascript hacks that are easily worked around by any end user...what are you trying to do? prevent Right Click...View...Source? that would not stop anyone...

    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: permissions to sp / table

    Al Cook (11/10/2011)


    Hi,

    If I grant execute permissions to a procedure, do I also need to grant permissions to any underlying tables that procedure uses? Or does the user(s) automatically...

    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: Database Mail Multiple address

    the profile you setup for database mail contains the "from " address;\for multiple addresses, the @recipients parameter expects a semi-colon delimited list of emails:

    EXEC msdb.dbo.sp_send_dbmail

    ...

    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 backup a table with data?

    dave.chapman (11/10/2011)


    Along those same lines, I want to back up or copy table and data to restore on a different server in a different database. Any good suggestions here?...

    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 nudge with logic to use in dynamic SQL statement to delete duplicate FKs

    here's what i use, that finds FK duplicates regardless of any naming conventions...it uses row_number as suggested:

    it also assumes only simple, single column FK, and not multi column FK's

    SELECT

    'ALTER TABLE...

    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 some insert statements from some of the rows in an existing table

    Narayana Vyas Kondreddi generate insert statements script is overloaded with a lot of parameters;

    for example

    exec sp_generate_inserts 'myTable', @from="FROM myTable WHERE somevalue > 42"

    or

    exec sp_generate_inserts 'myTable', @ommit_identity=1,@from="FROM myTable WHERE...

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