|
ptr2void wrote: Did you mean to say I write a windows Service for that?
Nope, as one of your requirements was for some form of UI. Just write your application to use a tray icon and have it run as part of the Startup process (i.e. if it's in the Startup directory in your start menu, it automatically gets started when the user logs in).
|
|
|
|
|
If I remember, there's a way to check if the internet connection is active through WMI. The failing of this method I remember was that you don't know if there's an internet connection but that the LAN connection is active. It is assumed that if the LAN is active there is an internet connection.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
Mustafa Ismail Mustafa wrote: It is assumed that if the LAN is active there is an internet connection.
Assumed by who? A LAN connection does not mean that LAN has access to the internet!
|
|
|
|
|
J4amieC wrote: A LAN connection does not mean that LAN has access to the internet!
I know that, what I meant is the solution's draw back was that it assumes that if there is an active LAN connection then there is Internet connectivity.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
Hi all..
How can set richtextbox transparent..?
Thank you..
%#&kmpYrlHSGYG5@#($_+!@!(*JASnjshdk,cm_0ashjhdbn@#$!48mkhfbchsh))^%#W%&@YW7wsdfjw789';'][]\`~JKJQ4$!@#~)-HSKS^&*1)JK12@#@$~!1`DFGkqp][]\]?Zas;EWRG%!@~)(^&BVAG
|
|
|
|
|
|
hi
how to get list of all tables that exist in my sql server instance ?
i'm using this scrpit :
select * from sys.tables
but this command return only tables that exist in Current Database.
thanks
|
|
|
|
|
How about posting here? http://www.codeproject.com/script/Forums/View.aspx?fid=1725
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
check this
use databasename<br />
select * from information_schema.tables
or this
SELECT *<br />
FROM dbo.sysobjects
or for more information check this...[^]
I Love T-SQL
|
|
|
|
|
thanks for reply
this is statements is very useful for me :
select * from information_schema.columns
but this scrpit only get information from current database while i want for all databases in server.
|
|
|
|
|
Then iterate over each of the databases performing the same query.
|
|
|
|
|
yes, of course.
but how to iterate through each database ?
|
|
|
|
|
To identify all user defined tables on a particular instance, you would use select name from master.sys.databases where owner_sid != 0x01
|
|
|
|
|
select name from master.sys.databases where owner_sid != 0x01
this script only list 3 database name for me :
ReportServer
ReportServerTempDB
AdventureWorks
|
|
|
|
|
hdv212 wrote: this script only list 3 database name for me :
ReportServer
ReportServerTempDB
AdventureWorks
And? How am I supposed to know what databases you have? I did state that this was per database instance so, if you think you are missing some, you need to check to see that you are hitting the right instance. For instance, you may find that one instance is running as (local) and the other as (local)\SQLExpress.
|
|
|
|
|
enumerate list of databases by:
use master<br />
SELECT name<br />
FROM sysdatabases
I Love T-SQL
|
|
|
|
|
IF you are using SQL Server 2005 (it doesn't work on any other)
exec sp_MSForEachDB<br />
@command1 = "use ? select '?',name,type from sysobjects where type = 'U' "
and please post sql questions in the sql forum.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Hello guys,
I am struggling for 3 days now with the problem of reading and writing form/to an usb port. For this I tried to use LibUsbDotNet. The library has a very nice and at first I though useful documentation. My problem is that I cannot reference the UsbDevice object that I want to use.
I tried to iterate through the UsbDeviceList but have no success because the List is empty (I cannot understand why) . I tried with different sticks and card reader device and the result is the same the DeviceList is empty obviosly I doing something wrong but I cannot figure what .
<br />
UsbDeviceList usbDeviceList = new UsbDeviceList();<br />
IEnumerator<usbdevice> enumerator = usbDeviceList.GetEnumerator();<br />
while (enumerator.MoveNext())<br />
{<br />
usbDevice = enumerator.Current;<br />
if (usbDevice.Info.IdVendor == infoDevice.IdVendor)<br />
break;<br />
}<br />
</usbdevice>
LibUsbDotNew Library[^]
Hope some of you worked with this library and cam help me with some useful tips.
Thanks
|
|
|
|
|
Try this: http://www.icsharpcode.net/OpenSource/SharpUSBLib/default.aspx[^] but it will need this installed: http://libusb-win32.sourceforge.net/[^]
I've tried it in 2 previous projects and it works like a charm.
I haven't tried LibUsbDotNet so I can't help you with that one, sorry.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
First I did not wnat to use that library but seems that I have no other sollution.
The problem with that library is that I didn't find a decent documentation and that it isn't maintained anymore.
Also you need to install the LibUSBwin 32 first ...
If you have some documentation or if you know a link please send a reply
Thanks.
|
|
|
|
|
Sadly, no. The projects were accomplished by looking at the samples that came with the download, that gave me an idea of what to do. Their object model isn't convoluted at all from what I remember.
"Every time Lotus Notes starts up, somewhere a puppy, a kitten, a lamb, and a baby seal are killed. Lotus Notes is a conspiracy by the forces of Satan to drive us over the brink into madness. The CRC-32 for each file in the installation includes the numbers 666." Gary Wheeler
"You're an idiot." John Simmons, THE Outlaw programmer
"I realised that all of my best anecdotes started with "So there we were, pissed". Pete O'Hanlon
|
|
|
|
|
for instance I need to do some basic things reading and writing using the usb port.
I cannot find out what endpoint should I put in BulkWrite.
|
|
|
|
|
how to write xml root element attribute string in .net(C#).like <rss version="2.0">
anybody know plz reply me
Rajendran.AL
|
|
|
|
|
I've never seen attributes on a root node, but why would it differ to any other node ?
Christian Graus
Please read this if you don't understand the answer I've given you
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hello ,
i am creating widget through rockyou.com on my site but it creating problem when i am creating widget through corkboard so can anybody help me regarding this....m pasting this code on my aspx page
<embed src="http://apps.rockyou.com/fxtext.swf?ID=29184447&nopanel=true&stage=true" quality="high" scale="noscale" width="497.715" height="174.01875" wmode="transparent" name="rockyou" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
Thanks & Regards,
Priyanka
|
|
|
|