Viewing 15 posts - 1,291 through 1,305 (of 1,345 total)
Yep, if in Query analyzer then set your options.
Tools --> Options --> Results Tab- Maximum Characters per columnt: 8000
But I doubt this is the issue.
Without sample data and table definition,...
June 30, 2005 at 3:16 pm
How about a create table statement for [view_machine_hours]
and some example data, and what you want the results to look like.
June 30, 2005 at 2:34 pm
Now your thinking outside the box.
Not sure how big the box is though.
June 30, 2005 at 2:12 pm
A good question indeed.
A new table for each day of the week right?
Thats about the only reason I can think of.
June 30, 2005 at 2:11 pm
He is using CommandType.StoredProcedure.
cmdSave = New SqlCommand("Test", GlobalConnection)
cmdSave.CommandType = CommandType.StoredProcedure
parmReturnValue = cmdSave.Parameters.Add("RETURN_VALUE", SqlDbType.Int)
parmReturnValue.Direction = ParameterDirection.ReturnValue
cmdSave.Parameters.Add("@UserID", lvUserID)
cmdSave.Parameters.Add("@test", TextBox1.Text)
GlobalConnection.Open()
cmdSave.ExecuteNonQuery()
GlobalConnection.Close()
To do it this way you do need...
June 30, 2005 at 2:04 pm
Are you sure you are restoring it to the correct server, and the name your trying to restore it as does not exist.
How are you restoring, with enterprise manager, or...
June 30, 2005 at 1:48 pm
Or
CREATE PROCEDURE SP_NEXTUSER @NEXTUSERNUM smallint OUTPUT
AS
--ME REGRESA EL SIGUIENTE NUMERO MAS PEQUEÑO DESOCUPADO PARA UN USER_NUMBER
-- EJEMPLO SI TENGO DADOS DE ALTA 1,2,7,21... ME REGRESARIA UN...
June 30, 2005 at 1:41 pm
I see this alot, people need Dynamic sql to solve problems where they are trying to build an application so obscure that there is no known values.
If you try to...
June 30, 2005 at 1:38 pm
I told the dude before I started helping him that his schema was crap, and he needed to do some table modeling.
June 30, 2005 at 1:31 pm
No he's trying to pass in a comma separated list of integers.
He's got a poorly defined schema, where "Fields" for a virtual table are defined as rows in a table, and values...
June 30, 2005 at 1:23 pm
Your going to also have issues here
This will always return all field ids
SELECT @SqlString = coalesce(@SqlString,'') + ' min(case B.FieldID when ' + ltrim(Str(A.FieldID)) + ' then Response end) as...
June 30, 2005 at 12:27 pm
I created a table variable and inserted some records so I could run the query to test for the correct results
June 30, 2005 at 12:06 pm
First of all what is the colation set for the field on that table?
Default is SQL_Latin1_General_Cp1_CI_AS
Meaning Latin, General, CI = Case insensitive, AS = Ascending Sort If this is the...
June 30, 2005 at 11:35 am
Try this.
Your missing the ' around the Character fiedlds your trying to insert
When your having issues with dynamic sql,comment out the execute, and put a select statement prior to execution...
June 30, 2005 at 11:17 am
Viewing 15 posts - 1,291 through 1,305 (of 1,345 total)