all groups > sql server mseq > february 2005
massive log file
Posted by grumy at 2/25/2005 2:01:35 PM
the transaction log on a 10Mb database has shot up to 1G!,
how can I reduce this and prevent this happening in the
future.................... more >>
index on a view
Posted by cmarano at 2/17/2005 3:48:06 PM
Hello,
I have a table (TAB) and A View with alias (VIEW)
Table cod varchar 3
descr carchar 60
my view cod alias COd1
descr alias DES
Now i need a index on view with key COD1
I can't create it.
Can you help me
Carlo
... more >>
Creating an alias
Posted by Bruce Parker at 2/15/2005 7:25:06 AM
I have an alias that can get very long because it maintains a information of
where it came from. Is there a way to alias an alias?
My first thought was:
Declare @T1 varchar(128)
Set T1 = 'MyAlias'
....
Inner Join Table1 as @T1
This of course does not work. Is there way?
... more >>
Formatting numeric fields in select-clause
Posted by Magnus Broman at 2/14/2005 8:13:01 AM
This is propably a very simple question, but I can´t seem to find the answer
to it in the documentation.
I want to format a numeric field so the result is right justified and
zero-filled.
ex select 1 will give the result 01
How do I manage this simple task?
--
best reguards fro... more >>
Simple Query problem
Posted by Wes at 2/14/2005 3:29:24 AM
Sample table as follows
Order ID Stock Code Status
--------- ------- -------
203 STK1 3
203 STK2 2
203 STK4 3
204 STK1 3
204 STK5 3
205 STK2 2
205 STK1 ... more >>
query assistance -return most recent date
Posted by Rich_A2B at 2/10/2005 9:17:01 AM
I have a table that has two fields, pkg_num, which is a number, and
del_date_time, which is a date-time. The table can contain duplicate pkg_num
values, as long as the del_date_time values are different for any given
number. I need a query that will return the most recent del_date_time for
... more >>
err
Posted by shif at 2/10/2005 1:43:07 AM
Hi
I am having an application with mssql7 standard as backend.
Some times the entry screen is hanging and nobody can save data.
I am using several mster tables like supplier,customer..etc
At this time when i start opening a table ex:supplr_master in server
it is showing an error
"Microsoft o... more >>
select count (distinct X, Y)
Posted by Ronan at 2/8/2005 2:29:03 AM
Hi all,
I'm trying to make this query:
select count (distinct UC_CODE, SYNT, SUPER)
FROM PLAN_RB
WHERE HYPER IS NULL
AND SUPER IS NOT NULL
and I have this message:
Incorrect syntax near ','
What I want to find is the total number of lines...
Do you know a way to solve this problem... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
LIKE or CHARINDEX algoritms
Posted by Kuido K?lm via SQLMonster.com at 2/7/2005 6:07:44 PM
Hello !
Does nobody in which algorithm the LIKE and CHARINDEX function based.
Is it meaningful to write itself search algoritms based on
Knuth-Morris-Pratt or Boyer-Moore algoritms to replace LIKE on CHARINDEX
functions for speed exhancement ? (I itself not belive)
Is the some ways to spee... more >>
named transaction
Posted by Malgorzata Ndreu at 2/7/2005 9:20:43 AM
Hi,
I need to make sure i do not open second transaction if one is already
opened,
i wanted to name a transaction, but how can i cjeck if a transaction with
that name is already open?
mndreu
... more >>
Where Statements
Posted by Phil at 2/7/2005 8:57:05 AM
Hi all,
I have some code that looks like below and after a few suggestions from a
previous post I have tried passing it all through as variables but with no
luck, has anyone else got any other ideas how I can speed this stored
procedure up, all necessary tables have indexs????
Any help w... more >>
Difference between = and IN
Posted by Andy at 2/4/2005 3:39:07 AM
Hi
Does anybody know what the difference is between the 'IN' and '=' operators.
I am aware that '=' compares two expressions whereas 'IN' looks to see if an
expression appears in a list and that a statement including an '=' operator
is quicker to type than one with an 'IN'. Other than that ... more >>
Cross Tab Query
Posted by Daud at 2/3/2005 3:55:01 AM
How can I cross-tab the query it was simple in MS-Access but i don't know how
to do it in SQL. the thing i want is as follows:
Simple Query
Item Year Qty
A 1991 10
B 1991 15
C 1991 20
Cross-Tab Query (Items)
... more >>
Converting a field from int to varchar during query
Posted by Jig Bhakta at 2/2/2005 1:07:04 PM
I have a query where I am writing the following statement:
select * from ......
where table1.field1 = table2.field2
.....
.....
.....
field2 is a varchar field and field1 is an int field. Field2 contains the
data mapping data for field1 and also other unrelated data as character
strin... more >>
copy table structure
Posted by GW at 2/2/2005 4:07:06 AM
Appreciate it if someone can show me how to copy table structure to a new
table without the data using a query.
Thanks.
Beginner..... more >>
Union Query syntax
Posted by Hoof Hearted at 2/2/2005 1:43:01 AM
I want to pull the most recent record from 2 tables with a Union query.
Here's what I thought would work:
Select TOP 1 EntryTime, Windspeed, WindDirection, Temperature FROM
BlackpoolWeather ORDER BY EntryTime Desc
UNION Select TOP 1 EntryTime, Windspeed, WindDirection, Temperature FROM
... more >>
Data style?
Posted by Wendy W at 2/1/2005 8:39:35 PM
Hi, I would like to change the data output style
generated from the SQL query. So, how can I go about
doing it? Example : display 59766 as 59,766 and also
datetime as date.
Please help....thanks a lot!
... more >>
Help w/ query
Posted by Greg at 2/1/2005 7:51:01 PM
I need help typing to pull info out of a SMS database. We are selecting info
from three table. we inner join the tables to get selected info out. where
we are having trouble is by limiting what is returned. is there a way to say
"if the row has a specific character(s) then the row will be ... more >>
Replace Errors with NULL using Convert
Posted by Dan at 2/1/2005 8:07:09 AM
I have a table with a varchar field that for the most part contains valid
dates ie (mm/dd/yyyy). There are some items that are not dates. I would
like a SQL statement that converts the varchar to a datetime and where there
is an error for a particular field will return a null for that field.... more >>
|