Forum Replies Created

Viewing 15 posts - 1,786 through 1,800 (of 13,460 total)

  • RE: Identify/May Application users in sql 2005 database

    metroman17 (4/29/2015)


    I see application users in the application but I do not see them in the database as users ?

    These app users can connect to the database using their logins.But...

    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: Identify/May Application users in sql 2005 database

    certainly, with more information.

    map to what? active directory? a separate table? SQL users to SQL logins?

    give us a bit more detail what you are after.

    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: test

    test Successful!

    if your profile is set up right, you probably got an automatic notification due to this follow up post to your thread.

    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: t-sql 2012 add new columns to a table

    ALTER statement always adds columns to the end. it does not support identifying the column_id and stuff like that.

    SQL doesn't really care the order of the columns , but...

    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: solving timeout

    looks like his table is an Entity-Attribute-Value model, so he uses the same table multiple times for various lookups.

    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 Valued Function

    most recent edit no matter what(so one row, period) or most recent by EntityId?

    your current logic groups by GROUP BY EL.Id, which is probably the Identity() column of the 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: A valid table name is required for in, out, or format options

    i'd expect either the keyword IN or OUT to exist in the query, right?

    bcp STATRLO.dbo.PM-allactivity-emaillog_042315 in format nul -c -t, -f C:\database\Activity_c.fmt -S stat-hp\sqlexpress - T

    i always use query out...

    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 Function question

    adam-639168 (4/24/2015)


    There is a table function that returns results based on the account parameter that is referenced.

    e.g. select * from dbo.mytablefunction(ACCOUNT)

    I have a list of accounts in a different 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: Trace flag to capture error messages like PK violation

    create either a server side trace or an extended event that captures errors. then you can review them at your leisure.

    you can limit it to certain tspecific error values if...

    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 Valued Function

    forrest77 (4/24/2015)


    Hi, I tried the distinct and it did not work. the issue I'm having is when I join on this table to create a report, I get multiple...

    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 job or SP to deny access to AD login for certain period of time to SQL server instance

    i'd stick with the explicit commands that Gail suggested, but

    this worked fine for me when i quick tested it, but if you want it to occur at specific times, 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: Active Directory Accounts need to see only one database role.

    ok, so you have ~3000 users in active directory;

    did you add a login for a windows group like myDomain\RegisteredUsers? or did you do user by agonizing user ~3000...

    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: replace a Date A with Date B if Date A is null

    same table? sure:

    UPDATE Customer

    SET UpdatedDate = CreatedDate

    WHERE UpdatedDate IS NULL

    AND CreatedDate IS NOT NULL

    different table ? if you can join the tables together, then yes.

    UPDATE Customer

    SET VerifiedDate...

    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: Check DB Mail Status on All the servers...

    jobs or individual emails that are failing?

    here's a quick query you could run on every server via Registeredservers, maybe this gets you started?

    SELECT top 100

    sent_status As Reason,

    err.[description],

    ...

    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 fails at email server alert

    also, note the error is at the SMTP mail server you sentto, and might not have anything to do with you (unless you own the mail server that it was...

    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 - 1,786 through 1,800 (of 13,460 total)