Forum Replies Created

Viewing 15 posts - 9,286 through 9,300 (of 13,460 total)

  • RE: Why this Convert has a small quirk?

    Roy it looks to me that this is a rounding issue when the convert is changing to smalldatetime; that is wierd to me as well, since i'd expect the rounding...

    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: scalared valued functions

    a user would need EXECUTE permissions on the functions in order to use them.. read(SELECT) access, like granting db_datareader, is limited to tables or views.

    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: Default Value For Columns

    no limit the way you are thinking...you can have one default per column if you want...a table with 200 columns could potentially each have a default value for each 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: xp_cmdshell and TableDiff.exe

    xp_cmdShell does not use your credentials.

    this is a common security misconception . The problem is that when you access any resource OUTSIDE of SQL server, like network shares, local hard...

    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 create a table on the fly? Is it even possible?

    sure, it's just like any regular INTO NEWTABLENAME select statement: the column definitions will be derived from the output of the results of the SELECT.

    SELECT TOP 3 *

    INTO MyNewTable

    FROM sys.tables

    SELECT...

    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: ProperCase again

    Paul i think you are on the right track about the collation issue;

    your function and examples worked fine; i got the correct proper cas for all the examples you posted.

    I...

    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: Is there away to Know who is the NT USer when the login is sql server login

    Gil i don't believe it is possible.

    I'd seen this question a couple of times before, and here are some threads on the same issue.

    http://www.sqlservercentral.com/Forums/Topic921933-391-1.aspx

    http://www.sqlservercentral.com/Forums/Topic906015-145-1.aspx?Highlight=whoami

    http://www.sqlservercentral.com/Forums/Topic905937-146-2.aspx

    i had tried reading the registry 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: Linked server

    I think Jim Dillon has posted the definitive way to create a linked server to MySQL here:

    http://www.sqlservercentral.com/Forums/Topic340912-146-1.aspx

    he posted some really good instructions, and there's a lot of sharp questions 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: Invalid length parameter passed to the SUBSTRING function

    then the error is in the logic where you are determining the substring; does this return any rows?:

    ;WITH CTE AS

    (

    SELECT Field9,

    ...

    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 length parameter passed to the SUBSTRING function

    the problem is in the data; at least one row does not have every charindex you are looking for:

    select * from evCreateUser

    WHERE CharIndex(''User Account Created'', Field9) = 0...

    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: Changing dates to Integers

    there is absolutely no advantage to storing dates as anything except dates.

    never store datetime as any other datetype except datetime.

    what is the date of the integer 20105404?

    internally, SQL stores 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: Changing dates to Integers

    depends on what "kind" of integer you want:

    select convert(int,getdate())

    --40332 days since 01-01-1990, SQL's internal start date

    select YEAR(getdate()) * 10000

    + MONTH(getdate()) * 100

    + DAY(getdate())

    --an integer "20100604"

    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: compare database schema for database located on many instances

    i don't know if this will help you, as it's not a canned solution, just how I've done it in the past.

    I created a simple vb6, and then improved 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: Check that an email address actually exists before emailing

    davidandrews13 (6/4/2010)


    thanks for the responses.

    so if i wanted to find out if 'lowell@davidandrews.com' exists on my own server how would i go about that?

    lets say that the email in 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: Check that an email address actually exists before emailing

    no sorry Dave; all you can do is check that the format of the email is correct...[something] @ [a correct TLD]

    If you have your own mailserver for davidandrews.com,for example, then...

    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 - 9,286 through 9,300 (of 13,460 total)