all groups > sql server programming > march 2007 > threads for saturday march 31
Filter by Day: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
User defined regex function coded in C#
Posted by bdd at 3/31/2007 8:10:00 PM
Trying to create a function to regex through a SqlString data type. I am
having problems casting or converting the sqlstring to a regex type. Here is
the code:
public static SqlString CF_SearchRegex(SqlString searchString)
{
string searchPattern = @"^(?<searchword>\w+)(?<there... more >>
Service Broker Question
Posted by scott ocamb at 3/31/2007 6:28:16 PM
I am building a service broker implementation.
Our website allows a user to select a bunch of emails to send. These emails
are send to a service broker queue.
The receive queue executes an extended stored procedure written in C#. This
proc performs mail merge work on the body and sends the e... more >>
How group a column to show side-by-side?
Posted by Ronald S. Cook at 3/31/2007 3:30:10 PM
This is nasty question but...
How can I take the following data from a table:
ID ItemNumber Type
1 9830302 CD
2 9830302 Cassette
And run a select statement to get me:
ID ItemNumber Type
1 9830302 CD/Cassette
Thanks,
Ron
... more >>
SQL 2005 Query Question
Posted by Spanky deMonkey at 3/31/2007 2:57:31 PM
In the Query Analyzer, when I use "AdventureWorks"
I issued the query: Select lastname from person.contact
The message states: Invalid object name 'Person.contact'
When I issue the Query: Select LastName from Person.Contact
I get results.
Why is the query CASE sensitive? I looked ... more >>
Intelligent Product Search Query
Posted by Dan at 3/31/2007 2:38:04 PM
I need to create a better search on an ecommerce web site. Using the
Northwind database as an example, here is what I need to be able to do.
In Northwind.Categories.CategoryName, there is a value of "Dairy Products"
In Northwind.Products.ProductNames there are 2 products with values of
"Qu... more >>
Separating words from non-space string
Posted by Janusz at 3/31/2007 11:38:16 AM
Guys,
I am trying to figure out how to program an efficient sql query for
this scenario.
Let's say I have a table with strings like that: thisismyexample ,
thisismyanotherexample, lastexample
Then I have a table with dictionary words:
this,is,my,example,another,last,..... (all the engl... more >>
Why this CTE error? What am I doing wrong?
Posted by cmay at 3/31/2007 10:07:32 AM
I can't get any CTE to work, even something this simple:
WITH ASDF AS
(
SELECT 123 as A
)
Every CTE I try to create gives me the same error:
Incorrect syntax near ')'
for the final ")"
Can anyone make a suggestion?
... more >>
Query help
Posted by David Trasbo at 3/31/2007 4:26:32 AM
I am still working on my instant messenger, but it's also going to
include an RSS reader.
The system is, that you need to subscripe the RSS feeds you want. If
you add a new RSS feed to subscripe, it will be available for
everybody in the database.
I have the table 'RssFeedSubscriptions' whe... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
SQL 2005 Event Notification
Posted by LeifHar NO[at]SPAM gmail.com at 3/31/2007 3:01:44 AM
Hello,
I want to log "DISABLE TRIGGER" statement. But as I understand and
have read, this is not possible with event notification or DDL
triggers. I believe I understand why not DDL trigger, but why not
event notification?
Is the only alternative to setup a trace that runs 24x7?
Any sugg... more >>
How have strings within a string variable?
Posted by Ronald S. Cook at 3/31/2007 12:00:00 AM
This works fine:
SELECT *
FROM MyTable
WHERE Code IN ('X', 'Y', 'Z')
But I want those values in a variable. If I do the below, it doesn't work
because the X, Y, and Z aren't their own string:
DECLARE @MyString varchar(50)
SET @MyString = 'X, Y, Z'
SELECT *
FROM MyTable
WHERE Code... more >>
SQL Server and XML
Posted by SqlBeginner at 3/31/2007 12:00:00 AM
Hi All,
I have an XML file for which I need to pass data from SQL Server. Sample
xml file is shown below
<Root>
<One id="a">
<name>xyz</name>
<url>Content comes from sql</url>
<data>Content comes from sql</data>
</One>
<One id="b">
<name>xaz</name>
<url>Content comes... more >>
dataadapter and dataset
Posted by yshie via SQLMonster.com at 3/31/2007 12:00:00 AM
visual studio 2005
ms sql server
how will i know if i need to use a dataadapter and dataset? do i need to use
them everytime i have sqlcommand?
because i will create a data binding code and i don't know if i need to
create dataadapter and dataset. i have 4 textboxes and i will fill only the... more >>
How to retrieve column value into a variable?
Posted by ~~~ .NET Ed ~~~ at 3/31/2007 12:00:00 AM
When I was into Oracle I used to be able to do things like "SELECT column
INTO varname" and then use that variable into subsequent operations. I need
to do something like that in SQL Server 2005 (Express).
I have a table A with a PK and and several other columns. I am interested in
a non-PK... more >>
|