|
Absolutely no idea, never used it, never looked into it, was not even aware it existed. I have not looked at a connection string for many years. I wonder if I am missing something? Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Rob Philpott wrote: What does this entry in the connection string actually do?
Found some good explanation (with usage scenario's) on MSDN[^];
MSDN:
In previous versions of the .NET Framework it was possible to simulate non-blocking execution by using asynchronous delegates or the ThreadPool class; however, those solutions simply blocked another thread in the background, making them far from ideal for cases where it is important to avoid blocking threads [...]
I are Troll
|
|
|
|
|
Hi there,
I want a way to stream data from one table in one database to the same table on a different machine.
Is there a way?
Any help would be much appreciated.
Kind regards,
Hugo
|
|
|
|
|
Option 1: replication
Option 2: write a job to perform the bulk transfer.
|
|
|
|
|
If you don't need to do this in real-time, then you could consider taking a nightly backup of Server A and performing a restore on Server B.
Just a thought.
|
|
|
|
|
If you are using Sql Server 2005 or later, you can use Service Broker.
|
|
|
|
|
bonkers123 wrote: Is there a way?
Multiple, and their applicability depends on the type of database that you're using. SQL Server for example has the option to "link" to another database. It also depends a bit on what you expect from the target-table. Does it have to be "up to date" at all times, or would it be sufficient to have access to yesterday's data?
To add to the pile of options; you could also use the Microsoft Synchronization Framework.I are Troll
|
|
|
|
|
It has to be up to date at ALL times... It's a sql database...
|
|
|
|
|
So how do I link a table of one db, to a the same table on a different db ... ?
|
|
|
|
|
From the Management Studio, expand "Server Objects", right-click on "Linked Servers" and select "New Linked Server". There's several options to specify the credentials for the remote database.
E.g., if you have Server A (with a master database) and a Server B (with AdventureWorks), then you could execute queries like this;
SELECT [name]
FROM [master].[sys].[tables]
UNION ALL
SELECT CAST([VersionDate] AS VARCHAR(50))
FROM [ServerB].[AdventureWorks].[dbo].[AWBuildVersion]
More information on configuring a linked server can be found here. Hope this helps I are Troll
|
|
|
|
|
|
Hi all,
I've been scouring the web for information on how to access an SQL Server Compact database under WinCE, using Embedded VC++. Does anyone know where I can find examples or pointers on how to do this please?
TIA modified on Wednesday, March 10, 2010 4:39 AM
|
|
|
|
|
Have you looked at connectionstrings.com, that is where we point most inquiries on this subject. Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have a MS Access database with a table INFO that has Name column (only contains First Name), since it contains a huge list, it will require very long time to queury all of them. I prefer to devide them by character groups (A,B,C ... Z) in order to reduce the queury time
I couldn't find the the SQL command that can queury table INFO with column Name starting with A character
Anyone know how to do it?
Thanks to any help
|
|
|
|
|
WHERE Name LIKE 'A%' ORDER BY Name should do it as % is the wildcard character
|
|
|
|
|
I did try 'A%' somehow it doesn't work, but if I try with 'A*' like the latter response then it work!
Anyway, thank for help just might be syntax from me
|
|
|
|
|
When I use Microsoft.Jet.OLEDB.4.0 to work with an Access database, it takes % as the wildcard character.
|
|
|
|
|
It's been a long time since I used Access, but IIRC, a % symbol represented a single arbitrary character, while the * meant any number of characters, much like DOS and the ?/* pair. "A Journey of a Thousand Rest Stops Begins with a Single Movement"
|
|
|
|
|
Roger Wright wrote: IIRC, a % symbol represented a single arbitrary character
Not quite.
Apparently there are two standards, one using * the other % for "any string", see here[^]. I have a C#/Access application that works well with % (and not at all with *)but reading that page seems to tell me I should use *, not %.
|
|
|
|
|
Try a select statement like this:
select * from INFO where Name like "A*"
This will return all rows with column, Name, beginning with the Letter A.
|
|
|
|
|
It works beautifully
Thanks for help
|
|
|
|
|
Hello there
I have a table which contains the following fields...
artist
title
count_played
date_title_played
I am trying to figure out how to present a top ten most played, but I can't seem to get my head around how to stop it showing duplicate count_played. At the moment I have used the following Select...
SELECT top 10 artist, title, count_played, date_title_played
FROM dbo.songlist
WHERE count_played >0
ORDER BY count_played DESC, date_title_played DESC
However this is what shows...
Artist Title Count Last Played
Wanted By The FBI Until the End of the World 22 09/03/2010 11:22:16
Koko Conley Keep Your Head Up 22 09/03/2010 10:35:07
Red Sun Compromise 21 09/03/2010 11:08:57
Cara Friend of Mine 21 09/03/2010 11:01:09
Preet Whos going to love you live 20 09/03/2010 10:51:22
The Ambersons Oh, my Isabelle 19 09/03/2010 10:51:22
Patchwork Grace Boozawaffle 19 09/03/2010 10:49:01
VK Lynne Find Me 18 09/03/2010 10:45:33
Clara Barker Wishing 17 09/03/2010 10:43:45
Red Sun Just To Hold You 17 09/03/2010 10:11:00
What I actually want is...
Artist Title Count Last Played
Wanted By The FBI Until the End of the World 22 09/03/2010 11:22:16
Red Sun Compromise 21 09/03/2010 11:08:57
Preet Whos going to love you live 20 09/03/2010 10:51:22
The Ambersons Oh, my Isabelle 19 09/03/2010 10:51:22
VK Lynne Find Me 18 09/03/2010 10:45:33
Clara Barker Wishing 17 09/03/2010 10:43:45
and so on.
I am not that experienced with sql queries but if someone could point me in the right direction on this it would be very much appreciated. Is it some sort of grouping that i need to use?
Regards
Ray
|
|
|
|
|
For a start I am just a little bit confused. If you wanted the top 10 most played songs, then surely it doesn't matter if 2 songs have been played the same amount of times. If you really want to do it this way, then you need to specify DISTINCT on your count_played field i.e SELECT DISTINCT countplayed, artist, title FROM ... etc Hope this helps
[EDIT]
To limit the resultset to the top 10 would depend on your database. SELECT TOP 10 ... would work with access and SQL Server, but with MySql you need to go SELECT DISTINCT count_played FROM songlist ORDER BY count_played DESC LIMIT 10 modified on Tuesday, March 9, 2010 8:18 AM
|
|
|
|
|
Hi
Thank you for your help, I am using sql 2000 however if I use DISTINCT the results seem to stay the same, if I only use the count_played field then yes it shows only single rows of a particular count number but then how do I include the artist and title fields?
I may not be seeing the wood for the trees as I don't really know much sql sorry.
Regards
Ray
|
|
|
|
|
Try a sub query that finds max [Last Played] by Count.
select ...
from songlist
inner join (select count, max([last played])...
If you need more let me know.
djj
|
|
|
|