Forum Replies Created

Viewing 15 posts - 8,941 through 8,955 (of 13,460 total)

  • RE: To seach a string in the entire database

    provide to a user ?!?! every varchar/char/nvarchar/nchar column in the database?

    unless this is for a developer to fix some code, as already suggested, you really need to use full...

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

    yes that's correct...but it depends on your data as to whether it will be blank or find a value...i assumeed one space between each ite,.

    if there are TWO spaces between...

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

    originally you had posted that you had a table dbo.NEWDUNDD_SEACX with a column f1

    because you had no CREATE TABLE or INSERT INTO scripts, i created my own table wth...

    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: install SQL 05 on Windows 7

    in Win7 and Vista, security is a little tighter...you don't get added automatically to the instance you are installing. One of the steps during the install is to add yourself...

    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: String Manipulatiom

    is it really string manipulation?

    if it's a float/decimal, you could subtract the FLOOR() of the value from itself to get the remainder:

    declare @val float

    set @val = 10.8061111111111

    SELECT @val - floor(@val)--returns...

    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 to create an insert trigger

    noone answered your post for a long time because you didn't provide the esentials...the CREATE TABLE definitions of your tables.

    here is an example, but it's based on wild guesses as...

    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: convert access query to sql server

    wow, formatting really makes it readable:

    i think this is what you are after.

    because they are all inner joins, it doesn't matter whether there are a zillion nested parenthesis or not.

    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: Do linked and remote server use Windows authentication?

    try this: this(in theory) should show you your username/context when on the remote /linked server, assuming the linked server is a SQL server:

    select * from openquery

    (YourLinkedServer,'select

    user_name() ...

    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: Setting IDENTITY_INSERT not working...

    well the error is telling you you have to explicitly list the column names:

    TRUNCATE TABLE [tablename]

    SET IDENTITY_INSERT [tablename] ON

    INSERT INTO [tablename](COLUMN1,COLUMN2,COLUMN3....)SELECT [ID],

    [VENDOR_ID]

    ,[TAX_ID]

    ,[PYMT_NO]

    ,[NAME]

    ,[ADDR]

    ....

    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: Update Transformed to WHERE Clause on All Columns

    well here's an example from visual studio:

    the dataset is used to strongly type the column data types, and a query is used to fill the dataset.

    the easiest way to add...

    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: Update Transformed to WHERE Clause on All Columns

    david my knee jerk reaction is the same as yours; i'd be checking whether there is there a primary key or not on the base table.

    i've seen query builders...

    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 Trace

    ODPOA (8/10/2010)


    My task.

    -Create daily backups of the changes made that day

    -Apply those changes to a remote database

    backup the database, then restore the backup on the remote server. that is 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: SQL Trace

    throwing in my two cents here; if you really want to capture a full trace of everything, you can simply turn on C2 auditing; C2 auditing is actually just another...

    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: Wierd situation. sa [SysAdmin] cannot grant SysAdmin rights to other logins.

    i once worked in a shop where the original sa login was renamed and a new cripped sa login was created as a honey trap for developers who shouldn't be...

    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: Inverse of my Query Results?

    still requires a LEFT OUTER JOIN to get the specific data: here's just one way to do it:

    SELECT se.* FROM dbo.TB__Employees se

    LEFT OUTER JOIN (

    SELECT

    sec.EmployeeID

    FROM dbo.TB__EmpCourse...

    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 - 8,941 through 8,955 (of 13,460 total)