Forum Replies Created

Viewing 15 posts - 5,686 through 5,700 (of 13,460 total)

  • RE: Table scripting does not bring collation

    it's a scripting option:

    if you go to tools options in SSMS, one of the selections available is "Include collation"

    change it, you might have to reirun in a new window, and...

    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 run on one server but error on the other.

    CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) as qt

    if the database you are executing the query from is not compatibility 9 or above, i think that will fail.

    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 disable "insert and update" permission for a DB role in securables

    ugh, i hate it when people start adding permissions to public.

    this script will generate the REVOKE commands for any permissions granted to PUBLIC to specific objects ;

    from there you can...

    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: Find special characters

    ok i see that; case sensitive collations, and accent insensitive colaltions will see Ä as matching both 'a' and 'A' for example.

    i fiddled with it a little, not much...

    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: Find special characters

    clearly you've modified what i posted in order to get the results you are showing. show us the code YOU created.

    we can find the issues there.

    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 validate a windows login in domain through SQL queries

    the CREATE LOGIN process already does that.

    for example if you try this command:

    CREATE LOGIN [fakedomain\fakeuser] FROM WINDOWS WITH DEFAULT_DATABASE=[master]

    you get this error:

    Msg 15401, Level 16, State 1, Line 1

    Windows NT...

    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: Find special characters

    did you try my exmaple? it worked perfectly for me:

    /*

    DescriptionFoundChar

    Nº20º

    */

    WITH TBProduct (Description)

    AS

    (

    SELECT 'Nº20' UNION ALL

    SELECT 'No Special Characters'

    )

    SELECT 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: call/exec a Stored Procedure from a View

    Anders Pedersen (3/28/2012)


    Lowell (3/28/2012)


    also, a view can use or call a function, so if the proc can be converted to a function, that is another option.

    Performance however becomes, uhm, bad,...

    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 validate a windows login in domain through SQL queries

    sureshrajan (3/28/2012)


    how to validate a windows login in domain through SQL queries

    not sure what you mean...do you want to test if mydomain\sureshrajan has a login or has access to a...

    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: Find special characters

    here's one way to do it;

    the typical chars you are looking for are highascii between 160 and 255;

    here i'm just using a row_number() function generate a table of numbers so...

    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: Auto login screen in management studio

    i believe an "autologin" is nothing more than a shortcut that is passing the required parameters.

    so if you want it to auto login, you add the parameters, and if 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: call/exec a Stored Procedure from a View

    also, a view can use or call a function, so if the proc can be converted to a function, that is another option.

    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: Trigger Doubt

    GuruGPrasad (3/28/2012)


    Is it not possible to create trigger for ntext,text and image data type columns?

    Regards

    Guru

    you cannot manipulate any column that is ntext,text or image from the INSERTED or DELETED...

    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: call/exec a Stored Procedure from a View

    depending on what the procedure was doing, you might be able duplicate the logic from the proc in a view by using a CTE or two, but again it really...

    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: Valid XML causing Service Broker queue to Error

    Bob Cullen-434885 (3/28/2012)


    Thanks, Lowell. That sort of makes sense, but why, then, does not the SELECT ... FOR XML do that escaping in the first place? If that isn't guaranteed...

    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 - 5,686 through 5,700 (of 13,460 total)