Forum Replies Created

Viewing 15 posts - 12,256 through 12,270 (of 13,460 total)

  • RE: SQL 2000 Database without name

    did you try this:

    select'[' + name + ']' from master.dbo.sysdatabases

    and then trying to drop the database in quesiton, including the brackets?

    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: Deleting users from sys.sysusers table in MS 2005

    i think your stuck with simply generating the statements as a batch, and then running them:

    like this:

    select'exec sp_dropuser '''+ name + '''' as SQLSTMT, * from sys.sysusers where uid...

    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: Proc Plans question

    dunno if this helps; I've used this query in the past:

    select db_name(dbid),object_name(x.objid),* from (

    select * from syscacheobjects) x

    in an article here on SSC, i read that the columns pagesused...

    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 list ports

    here you g; this works for both 2000 and 2005, you have to run this in each instance:

    typical results:

    ServerName ...

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

    double check the table...it's problebly owned by a non dbo user...

    so the table is referenced by select * from lesterlogin.lester, and not dbo.lester.

    since sp_help doesn't like the owner name in...

    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 remove numbers from strings?

    My Dev Server for testing:

    Windows 2000 Advanced Server SP4

    1 Gig ram ...

    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 remove numbers from strings?

    here's the results of the second pass that Jeff asked for:

    SQL2000/QA ...

    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 remove numbers from strings?

    ok here's some performance numbers from my machine, which has both SQL2000 and SQL 2005:

    Jeff's inner join example took ...

    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: Updating 22,000,000+ row table in DTS

    I'm assuming the field is a varchar field,

    you din't give an example but there's two methods to look at below;

    if the values are always the same position, or 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: Need a List of ASP.NET database error codes and messages

    this isn't what you want to here, I'm sorry.

    .NET does not use codes to identify it's exceptions like VB 6.0 did. In

    .NET, everything you encounter is a "type", including exceptions....

    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 help

    Best;

    by simply clicking on your name and looking over your previous posts, it's obvious that the moment you encounter a question, you post it here first without ever attempting to...

    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 remove numbers from strings?

    so...

    Your saying CLR's are for people who know sql, or people who don't know sql...I'm confused. 😉

    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 use a constant value in select query in a view definition

    the way to do that would be with a scalar function then:

    Create Function dateConstant ()

    returns datetime

    AS

    begin

    return '01/01/2007'

    end

    select dbo.dateConstant()

    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 use a constant value in select query in a view definition

    i might be second guessing you, but i believe you want to change the date to a PARAMETER, and not a CONSTANT, right?

    If my re-interpretation is right, then you want...

    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 Column Check

    something like this might get you closer to where you want to go... the fines are calculated, as well as the days delayed.

    create table Borrowers(

    MemberID int,

    ItemID...

    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 - 12,256 through 12,270 (of 13,460 total)