Forum Replies Created

Viewing 15 posts - 4,471 through 4,485 (of 13,460 total)

  • RE: BCP Command

    He means do something like this:

    create the view via TSQL, for example:

    CREATE VIEW MyView

    AS

    SELECT

    [Student Number],

    IRN,

    Name,

    Gender,

    Address,

    city,

    state,

    ...

    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: finding char based on ascii value in Ireport

    You mean like this?

    SELECT *

    FROM SomeTable

    WHERE SomeColumn LIKE '%' + CHAR(33) + '%'

    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

    this is wrong...it's looking for a table that happens to have a dot in it's name:

    [Test].[dbo.Table].LastStartUpTime

    --should be

    [Test].[dbo].[Table].LastStartUpTime

    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: GRANT EXEC Permissions to All Stored Procedures - User Databases

    JeremyE (10/29/2012)


    If all the stored procedures are in the same schema you could grant execute on the schema like so.

    GRANT EXECUTE ON SCHEMA::[dbo] TO [UserOrRoleName]

    but that would grant execute 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: How To Get Timer Like Funcationality in SSMS to Auto execute a Query every N incremenets

    you can use a neat trick with RAISERROR to get an immediate result inside the loop, if that's what you want/need.

    a basic example:

    --print error immediately in batch

    declare @i int,

    ...

    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 Needed to pull the data

    sounds like a case statement or a union all, but i'm having trouble figuring out where your data is

    soemthing like this?

    SELECT Servername, ApplicationID, 'Table1' AS Appserver FROM Table1 UNION...

    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: System SP for Linking Excel file

    briancampbellmcad (10/29/2012)


    A little outside my experience... I open cmd and see "Administrator: C:\WINDOWS\system32\cmd.exe" as the header of my command prompt... not sure what and where to type in my...

    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: Index with zero seeks and thousands of scans

    i don't see index_id = 1 , which would be the clustered index.

    I see index_id 0, which means the table is a heap, and all the downsides that entails.

    what...

    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 to bring a SQL 2008 query to MS Access

    it gets a little outside of a lot of peoples comfort zones, but in .NET you can do a lot things on the client.. .left join/inner join/full join on 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: System SP for Linking Excel file

    also, for the prerequisites:

    install the AccessDatabaseEngine_x64.exe from microsoft:

    http://www.microsoft.com/en-us/download/details.aspx?id=13255

    make sure you open an Administrative command prompt window, and run it with the c:\Downloads\AccessDatabaseEngine_x64.exe /passive

    command line flag;

    this will force 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: System SP for Linking Excel file

    lots of things wrong here, let me point out a few, and then a script on how to create a linked server.

    1. you cannot create objects in the sys. schema

    2....

    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: Converting HTML entities to Unicode Characters

    i played with something similar, where i was converting from xml/html entities to the unicode? character char definition.

    the problem was i was using a recursive function, and the #of recursion...

    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: HELP HELP Database Error - Microsoft SQL Native Client error '80040e07', Conversion failed when converting the nvarchar value 'Dave Smith' to data type int. /include/aspfunctions.asp, line 1243 ???

    Lucasprss (10/29/2012)


    What would be the easy way to find this within my thousands of records, would you say?

    the issue is not with your data.

    it's with the query you are using...

    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: HELP HELP Database Error - Microsoft SQL Native Client error '80040e07', Conversion failed when converting the nvarchar value 'Dave Smith' to data type int. /include/aspfunctions.asp, line 1243 ???

    the error is in the query you are creating, which you did not post.

    it looks like you are concatenating a number to a string . like CustomerID + ' '...

    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: sysadmin vs serveradmin

    nothing like getting it straight from the source, and testing it yourself.

    BooksOnline has a page about what each of the server roles allows:

    http://msdn.microsoft.com/en-us/library/ms175892(v=sql.90).aspx

    play with this sample code below; this...

    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 - 4,471 through 4,485 (of 13,460 total)