|
More site info...
microsoft.public.sqlserver.programming | Forum profile
|
|
Forum profile page for microsoft.public.sqlserver.programming on http://www.microsoft.com/communities/newsgroups....
This report page is the aggregated overview from a single forum: microsoft.public.sqlserver.programming, located on the Message Board at http://www.microsoft.com/communities/newsgroups....
This forum profile page summarizes the general forum statistics such as: Users Activity, Forum Activity, and Top Authors, which are reported in either a table or graph below for a given reporting time period.
Additional forum profile information for "microsoft.public.sqlserver.programming" on the Message Board at http://www.microsoft.com/communities/newsgroups... is also shown in the following ways:
1) Latest Active Threads
2) Hot Threads for Last Week
Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a forum's popularity and/or exact posting volumes at any given reporting period.
|
|
|
|
|
Posting activity on microsoft.public.sqlserver.programming:
|
|
Week
|
Month
|
3 Months
|
|
Threads:
|
145
|
357
|
944
|
|
Post:
|
391
|
976
|
2,742
|
|
|
microsoft.public.sqlserver.programming Posting activity graph:
|
Top authors during last week:
user's latest post:
Wonder how to do nested logic in...
Published (2009-11-26 15:16:00)
You can use recursive CTE: CREATE TABLE Items ( item VARCHAR(10) NOT NULL PRIMARY KEY, superceder VARCHAR(10) REFERENCES Items(item)); INSERT INTO Items VALUES('ITEM1', NULL); INSERT INTO Items VALUES('ITEM2', 'ITEM1'); INSERT INTO Items VALUES('ITEM3', 'ITEM2'); INSERT INTO Items VALUES('ITEM4', NULL); INSERT INTO Items VALUES('ITEM5', 'ITEM4'); INSERT...
user's latest post:
Country > Region in...
Published (2009-11-26 15:51:00)
shapper (mdmoura@gmail.com) writes: > On a database I have two tables: > > Countries and Regions. For each Country I have one or many regions. > > Then I have another table, Centers, where I need to define its > location. > I suppose I need only RegionId in this table correct? > > By defining the Region of the Center I can lookup in which country is > located ......
user's latest post:
Recommended practice for JOIN...
Published (2009-11-26 03:06:00)
Frank Specifically for your case it does not matter , when it does for OUTER JOIN such as LEFT/RIGHT JOIN you can get 'wrong' output Start reading http://www.solidq.com/insidetsql/books/tsqlfund2008/ "Frank" <francis.moore@gmail.com> wrote in message news:b64b5bb9-a702-408b-9152-ded94ceacc0a@w19g2000yqk.googlegroups.com... > Hi, > > I'm currently reading a SQL...
user's latest post:
Query Help. in...
Published (2009-11-25 14:21:00)
On Nov 25, 11:21?am, LN <L...@discussions.microsoft.com> wrote: > How can I convert column data to single row base on licenseid. ?Please see > desire results below. > Thank you in advance. > > --SQL 2005 > > IF OBJECT_ID('Tempdb.dbo.#Temp', 'u') IS NOT NULL > ? DROP TABLE #Temp > GO > > CREATE TABLE #Temp > (...
user's latest post:
Interview question... in...
Published (2009-11-26 16:11:00)
I have been asked by several of my clients to do technical interviews for them and I use the same method Kalen. I want to see what the candidate can come up with given incomplete or nebulous information - which is exactly what they will get in the real world.
user's latest post:
Need help with Indexed View that...
Published (2009-11-25 08:46:00)
If you put the query I gave you in a table-valued function or stored proc and pass in the SKU as a parameter, and add the SKU to the WHERE clause predicate you will probably see acceptable performance. The key is that you're doing this for one SKU at a time, so with a little index-tweaking on your tables I would imagine your performance would be good. "Sam" <Sam@discussions.microsoft.com> wrote...
user's latest post:
How to write a trigger that...
Published (2009-11-25 14:56:00)
A trigger is called once per statement, not once per row that is updated. So you need to write the trigger to handle multiple rows (by matching the rows in the inserted table with the rows in your base table on the primary key of the base table). The trigger for this case could be Create Trigger trTable_1 On dbo.Table_1 For Insert, Update As Begin Update t Set MyValueCopy = i.MyValue From dbo.Table_1 t Inner Join inserted i On...
user's latest post:
Round-ding... in...
Published (2009-11-25 06:56:00)
"JeffP->" <JeffP@discussions.microsoft.com> wrote in message news:8DBB559C-705A-4DDC-A81C-F5E539952728@microsoft.com... > a penny. It just irks me that Excel is the defacto calculator, not a real > calculator or real math but Excel math. Perhaps someone should stop using Excel... ;) .
user's latest post:
update trigger question in...
Published (2009-11-25 09:31:00)
That's what I thought. Just wanted to be sure I wan't missing something. Thanks. "Plamen Ratchev" <Plamen@SQLStudio.com> wrote in message news:V9WdnRQ1WocM2JDWnZ2dnUVZ_opi4p2d@speakeasy.net... > Collation defines how strings are compared and sorted (as well as the > character set for non Unicode data), so it will have no effect on values > like INT and date. >...
user's latest post:
Data Type in...
Published (2009-11-26 11:06:00)
On Nov 26, 6:22?pm, Plamen Ratchev <Pla...@SQLStudio.com> wrote: > The FLOAT data type is a good choice. > > -- > Plamen Ratchev http://www.SQLStudio.com Thank You. I was undecided between real and float. Then I was also reading something about spacial values in SQL 2008 and I was getting a little bit confused. Thanks, Miguel .
|
|
|
|
Latest active threads on microsoft.public.sqlserver.programming::
Started 1 day, 14 hours ago (2009-11-26 23:31:00)
by kostas papadakis
hello my names is kostas i am from greece.
i have 1 linux server and 4 counter strike servers (game servers)
here is plugin \Steam\steamapps\kostasprimavera\dedicated server\cstrike\plugin.txt
and i need to send me from the server 1 file by sql
anyone know how to send this file
Uri Dimant wrote:
StuI'd say...
Started 2 days, 5 hours ago (2009-11-26 08:26:00)
by Erland Sommarskog
Frank (francis.moore@gmail.com) writes:
> I was asked the following question in an interview yesterday and could
> only answer the first part:
>
> A query is run and takes 2 minutes to complete.
> Nothing changes in the database, and the same query is run a second
> time but this time only takes a matter of seconds. Why?
>...
Started 2 days, 2 hours ago (2009-11-26 12:11:00)
by Russell Fields
Miguel,
It depends, of course. If your countries _always_ have regions, then you
can simply have your Centers refer to the Regions.
If, however, one of the Countries does not have Regions you will have to
either:
1. Carry both CountryID and RegionID in the Centers
2. Force an artificial Region for every Country....
Started 1 day, 23 hours ago (2009-11-26 15:16:00)
by Plamen Ratchev
You can use recursive CTE:
CREATE TABLE Items (
item VARCHAR(10) NOT NULL PRIMARY KEY,
superceder VARCHAR(10) REFERENCES Items(item));
INSERT INTO Items VALUES('ITEM1', NULL);
INSERT INTO Items VALUES('ITEM2', 'ITEM1');
INSERT INTO Items VALUES('ITEM3', 'ITEM2');
INSERT INTO Items VALUES('ITEM4', NULL);
...
Started 2 days, 2 hours ago (2009-11-26 12:11:00)
by Russell Fields
Peter,
I am sorry, but I do not fully understand what you are asking, but since it
is related to permissions you might find the following useful:
http://www.sommarskog.se/grantperm.html
This is about giving permissions to stored procedures, but I believe that it
explains things enough for you to leverage your problem....
Started 2 days, 3 hours ago (2009-11-26 10:56:00)
by Plamen Ratchev
The FLOAT data type is a good choice.
Started 2 days, 9 hours ago (2009-11-26 05:01:00)
by Erland Sommarskog
JimLad (jamesdbirch@yahoo.co.uk) writes:
> We're thinking about using CONTEXT_INFO to pass username to the audit
> trail triggers. Is this wise? Are there any plans to deprecate
> CONTEXT_INFO in a future version? Can anyone confirm that it's still
> in 2010 (and not deprecated)?
That is certainly what SET CONTEXT_INFO is ...
|
|
Hot threads for last week on microsoft.public.sqlserver.programming::
Started 4 days, 7 hours ago (2009-11-24 07:11:00)
by TheSQLGuru
1) what do you mean "retry"? can you explain the objective a bit better?
2) if possible, I recommend moving the person information to one table with
a primary key. then put the skills (0-n of them) in a separate table that
has the PK from the person table. this is basic data normalization, which
is something you probably should ...
Started 5 days, 14 hours ago (2009-11-22 23:21:00)
by Balaji
Hi Sam,
You query may be some thing like this...
select * from table
where datetimecol >= convert( varchar(30),dateadd(mi,-30,GETDATE()),108)
Regards, Balaji
"sam0204" <u56410@uwe> wrote in message news:9f87af27dfbf3@uwe...
> Hi all,
>
> I have a database which is similiar to
>
> id ...
Started 2 days, 5 hours ago (2009-11-26 08:26:00)
by Erland Sommarskog
Frank (francis.moore@gmail.com) writes:
> I was asked the following question in an interview yesterday and could
> only answer the first part:
>
> A query is run and takes 2 minutes to complete.
> Nothing changes in the database, and the same query is run a second
> time but this time only takes a matter of seconds. Why?
>...
Started 3 days, 13 hours ago (2009-11-25 01:16:00)
by Uri Dimant
Hi
Do you have lastest service pack? What if you insert the data via query
builder rather than SSMS?
"Jan Karel Pieterse" <jkpieterse@netscape.net> wrote in message
news:VA.00000623.17985d40@netscape.net...
> Hi,
>
> Using SQL Server 2005.
>
> I have a table with one required field (key ...
Started 3 days, 19 hours ago (2009-11-24 18:51:00)
by Plamen Ratchev
The UPDATE function evaluates to true if the column is listed in the SET clause of UPDATE statement. It does not
necessary mean that the value is changed. You can join the Deleted and Inserted virtual tables on NameID and then check
if FirstName or LastName is different, then update the FullName column. Below is how it may look.
But ...
Started 3 days, 3 hours ago (2009-11-25 10:31:00)
by Plamen Ratchev
You can use FOR XML PATH to concatenate the values:
SELECT DISTINCT A.LicenseId, STUFF(S.states_list, 1, 1, '') AS states_list
FROM #Temp AS A
CROSS APPLY (SELECT ',' + B.StateCd
FROM #Temp AS B
WHERE B.LicenseId = A.LicenseId
FOR XML PATH('')) AS S(states_list);
Started 1 week, 1 day ago (2009-11-20 08:19:00)
by Linchi Shea
Whatever answers you get here are no substitute for the detailed description
in the Books Online on this subject. I suggest you take a read there.
That said, with the full recovery mode, the most significant advantage is
that you can recover to a point in time if you back up your transaction log
regularly and preserve the log ...
Started 3 days, 22 hours ago (2009-11-24 15:36:00)
by Erland Sommarskog
Rich Lawson (nospam@nospam.com) writes:
> I have some fields that are being imported with SSIS which are integers. I
> have tried to tell SQL 2005 to default to 0, zero, but when it is imported
> with SSIS, the blank field becomes NULL.
Since I don't know SSIS, I cannot help you, but why are the columns
nullable in the first ...
Started 3 days, 18 hours ago (2009-11-24 19:19:00)
by Michael Coles
Here's a query to get you started. It grabs 2 of your vendors for each
product with the lowest prices. Note that if the 2nd and 3rd vendors offer
the same product for the same price there's no way to guarantee which one
will be returned since no business rule is defined for that:
SELECT *
FROM
(
SELECT ROW_NUMBER() OVER (...
Started 4 days, 2 hours ago (2009-11-24 12:01:00)
by Tibor Karaszi
The index name alone isn't guaranteed to be unique in the database. You need
to combine it with the table (object_id).
|
|