When I see a blog post or article that I want to read, investigate, follow up on, etc, I jot it down...
Reading Erik Porter's post Separating Date and Time in T-SQL, I remembered I have created some SQL
A few of the 10 teamare talking about their latest video - a demo of the new Zune. I'm quite impressed...
Some offer: "Sorry, this beta isn't available in your region"
Someone can correct me if I'm wrong, but I believe the Soapbox beta is only available in the US right now and will open up to other areas later. If anyone is trying from the US and not getting in, let me know and I'll find out what the problem might be. Thanks!
Correction, I was wrong. It is available world-wide, except for China. It will be available in China in 2007. Again, let me know if you're still having problems.
There was a hiccup with the registration. It has been fixed. Try again, thanks!
But running it on a Gameboy WOULD be fun! ;)
I honestly thought I was doing something wrong with my query because it was so slow, but I seriously wasn't doing anything complicated with it. After seeing this article list the one I mentioned in the entry about it being more performant, I just went with it.
http://www.asp.net/learn/dataaccess/tutorial25vb.aspx?tabid=63
"This tutorial implements custom paging using the ROW_NUMBER() keyword. For more information on using the table variable and SET ROWCOUNT technique, see A More Efficient Method for Paging Through Large Result Sets."
Oh and the table I'm querying has a single PK, so no worries there. Seems to be reliable so far, but I guess we'll see. Thanks for the heads up.
Well, well.
I'm using ROW_NUMBER() OVER as well for efficient paging for a forums app I'm working on.
After reading your article, I dumped over 300,000 records into the table holding the posts. And to my surprise - it hit the SQL Connection timeout!!! EEKS.
I hardly believed your blog post when I read it first, as ROW_NUMBER() OVER is the recommended way of performing 'efficient' data paging in SQL Server 2005, but I'm beginning to doubt that.
Would be interesting to see what Scott Guthrie's response to this is.
Cheers,
Wim
Actually - it was the Command timeout I hit first...
Well, the cats out of the bag ;-). In an effort to improve our membership numbers in order to attract
Thanks for the link, but I don't really get it. I see how that could help for a while, but when I get down to needing pages towards the end of my large result set, I'd still have to do a row number over pretty much all the rows. Also, you can't use a variable with TOP, and I can't hard code for every page set I want. So far, the method I talked about on this blog entry seems to be the best way.
GOD BLESS YOU THANK YOU!!
PingBack from http://www.livejournal.com/users/shtankeydiaper/14380.html
Thanks Erik! In a specific case with a datatable containing 42000 rows and 56 columns the command dataview.ToTable() took 2.5 minutes and by using your code it took 2 seconds!! Quite an improvment! The distinct was only on two columns.
Very nice. Thanks for posting this!
Ah ! This is what I am looking for. It will save me time and energy to create whole different aspx file and put logic on it.
Appreciated,
Pravesh
I watched that video over lunch. It was by far the worst Channel9 video I've ever seen.
Timeline:
0-5:30 - Talk about why HTML can't do enough
5:30-11:30 - Talk about what an object and embed tag are and why they enabled WPF/E
11:30-20:00 - Repeatedly go over how to embed a WPF object in an HTML document
20:00-30:00 - Show samples that are really just WPF-showoffs
30:00-32:00 - Show media player sample
Seriously, all they had to do was say "we have a plugin for IE and Firefox that allow you to embed a WPF application in a web page, and it can be scripted against". I really thought I was going to get useful content...
Sorry you didn't like it. I'm sure this was a more general video since it was the first one of many and they can't assume every developer knows as much as you. ;) And it's not just a WPF application in a web page. There are differences. There will be many more videos (3 or 4 more I believe) coming soon that will go more in depth. Check back. Also, you might want to leave comments on that video instead of here.
Wow. Slick stuff !
And in case anyone was wondering, the first commenter is NOT me. hehe.
I have Vista RTM installed with VS.NET 2005. I installed the Web App Support update from MS. I still don't see the ASP.NET Web Application project icon for creating a new web app project. I also can't open any existing web application projects.
Do you have any suggestions?
Thanks,
Brett
Sadly, I don't have an answer for you. I'm on Vista RTM (Ultimate on one machine and Enterprise on another) and have the web app project installed and both can open our web app projects. :(
PingBack from http://david.egerton.info/?p=80
PingBack from http://david.egerton.info/?p=81
Thanks Erik!
Your code worked flawlessly. The soultion is clean and flexible. Thanks a lot.
Im having trouble getting conected to xbox live. I signed on once, and now I can't seem to get back on. Before I got on the first time I tried for hours to get past the DNS not resolved error message. I finally got past it after power cycling my modem several times, and manually putting in the DNS server adresses, and IP address. Now I can't get it to work again. My setup is a direct connection to an arris cable modem, I have comcast as a high speed internet provider. Someone please help!!!! I have tried every trick in the book and nothing works.
How do i get out of the xbox live screen and get back to playing games saved on the hard drive? i have tried for weeks to get out of it and nothing is working. I am stuck playing one game and it is getting old. PLEASE HELP!!
it comes with the service pack 1 for vs 2005...
http://msdn.microsoft.com/vstudio/support/vs2005sp1/default.aspx
Thanks helped me with a problem i've been stewing over all week.
Thanks a lot, saved me so much time. I was using another routine i found on the net and it took 20 minutes. Now it takes 1 second. And is easier to read as well. The need for a select distinct on a datatable is that not all datatables are fed from a database. Sometimes it's from reading a CSV file or from another data source like an LDAP directory.
Thanks for the tip! This posting saved me a bunch of time.
Dude,
I so love posts that contain code :) Definitely looking forward to more on the topic of c9v4 development, and the code-journey's you guys explore!
Best Wishes,
Jonathan (jsampsonpc)
I too am discovering the power of generic methods...makes for much tighter/cleaner looking code. Looking forward to the coming posts on C9!
I had to do something similar in Windows Forms, and used the following code:
public static T FindControl<T>(Control rootControl) where T:class
{
if (rootControl == null) throw new ArgumentNullException("rootControl");
T lFoundControl;
foreach(Control lControl in rootControl.Controls)
if ((lFoundControl = lControl as T) != null)
return lFoundControl;
if ((lFoundControl = FindControl<T>(lControl)) != null)
}
return null;
And to find all the controls of a certain type:
public static IEnumerable<T> FindControls<T>(Control rootControl) where T:class
yield return lFoundControl;
foreach(T lFoundChildControl in FindControls<T>(lControl))
yield return lFoundChildControl;
I had to make a revision to your code for it to work in my environment. Here is the revision:
for (int i = 0; i < Controls.Count; i++)
// I had to add this line
if (found != null) break;
if (Controls[i] is T)
found = Controls[i] as T;
break;
else
found = FindControl<T>(Controls[i].Controls);
here is something I wrote that does the same thing - yet
just seems easier to understand:
public static DataTable SelectDistinct(string[] pColumnNames, DataTable pOriginalTable)
DataTable distinctTable = new DataTable();
int numColumns = pColumnNames.Length;
for (int i = 0; i < numColumns; i++)
distinctTable.Columns.Add(pColumnNames[i], pOriginalTable.Columns[pColumnNames[i]].DataType);
Hashtable trackData = new Hashtable();
foreach (DataRow currentOriginalRow in pOriginalTable.Rows)
StringBuilder hashData = new StringBuilder();
DataRow newRow = distinctTable.NewRow();
hashData.Append(currentOriginalRow[pColumnNames[i]].ToString());
newRow[pColumnNames[i]] = currentOriginalRow[pColumnNames[i]];
if (!trackData.ContainsKey(hashData.ToString()))
trackData.Add(hashData.ToString(), null);
distinctTable.Rows.Add(newRow);
return distinctTable;
kramlen, thanks for posting some code! You realize that code that I posted is over 2 years old now, right? I don't claim any intelligence in anything I wrote more than 6 months ago. ;) Still seems to be helping out some people though. Thanks for posting your code and thoughts on it.
Nice Article. It solved my problem. Events in which this code should go are - DataSourceChanged,Layout.
Jayaram, this was just a sample and was written two and a half years ago. If you'd like it to "go" where you talk about, then you'll have to do it yourself. :)
Could you share you Custom Authentication code?
PingBack from http://weblogs.asp.net/eporter/archive/2007/03/02/re-asp-net-custom-authentication-problems.aspx
Thanks!
Nice one Erik! This worked well for validating selection of a date in a calendar control. Isn't it a joke that the calendar control can't be validated out of the box!?!?! Cheers.
thanks! that probably saved me a lot of googling
That is a genius comment. It about the same on Digg now also.
Sad and true.
LOL..
I think it's time to rename that site to 's*tdot'
I have followed your instructions but without success. Is there something else to check ? Thanks
dasluna@gmail.com
I can access the Internet from the Pocket PC emulator, but no way from the SmartPhone emulator
Thanks so much! Exactly what I was looking for.
Nice article. Can anyone help, i am passing XML as string from ADO.Net, was using xml_preparedocument to do manipulation in SQL 2000 DB. How this xml datatype will help me out, if i use SQL 2005?
You can replace your entire query with this and it will even work on 2000.
DECLARE @TagCount int
DECLARE @Tags TABLE (TagID bigint)
DECLARE @Entries TABLE (EntryID bigint)
SELECT @TagCount = COUNT(*) FROM @Tags
INSERT INTO @Entries (EntryID)
SELECT
e.EntryID
FROM
Entry e
INNER JOIN
EntryTag et
ON
e.EntryID = et.EntryID
@Tags t
et.TagID = t.TagID
GROUP BY
HAVING COUNT(DISTINCT t.TagID) = @MatchCount
Thanks, Bryan! HAVING is exactly what I needed for that. The original code I posted wouldn't be too much slower than what you have there, but a little. HAVING cleans it up nicely. Thanks!
my xbox says that there is a dns error. it worked before. i went to the website and did what they said, but it still isn't working. i have a router and is the same set up as when xbox live was working. live said they'd be down on the 27 th of march 2007, but is still down on the 30th. this makes me mad. whats up?
Alright do i disbale UPnP for my computer or router, currently my xbox is connected to my wireless laptop i can sign in but when i try to play halo 2 it trys to download an update and gives an error message saying xbox live nt repsoonding, deadestcliffski is my gamer tag:) btw, if any one wants to learn how set up there 360 to there wireless desktop laptop add me on messenger or send an email to d_biker_14@hotmail.com with subject xbox to computer, Thanks
You can improve the snippet a little by adding the auto documentation as follows
private $type$ $property$;
/// <summary>
/// gets/sets the $property$.
/// </summary>
/// <value>The $property$</value>
private $type$ $property$
get { return _$property$;}
set { _$property$ = value;}
$end$
Helped me a lot! Thanks!!!!
i have a wireless-G broadband router and i cant find the ip address how do i find it
i have a question, how do i get the ip address of my machine if its on router network. how can i from the outside gain a direct access to my machine (via it ip ie)
A view example without any SPs, I hope it helps, worked for me ;)
CREATE VIEW dbo.ithaller_calisanlar
AS
select
TOP 100 PERCENT
* from dbo.mlz_kart where fabrika IN (SELECT Depo2007_car_kart.r_sayac from Depo2007_car_kart where LEFT(Depo2007_car_kart.kod,2) like 'SI%' or LEFT(Depo2007_car_kart.kod,2) like 'KI%') and dbo.mlz_kart.devam_durumu='C'
order by dbo.mlz_kart.kod,dbo.mlz_kart.ozel_kod
Taking these algorithms one step further. The issue of tracking what values have already been added to the returned DataTable can be eliminated by temporarily setting CaseSensitive to true on SourceTable.
bool origCaseSensitive = SourceTable.CaseSensitive;
SourceTable.CaseSensitive = true;
orderedRows = SourceTable.Select("", string.Join(", ", FieldNames));
This tells the sort to perform a case sensitive comparison of strings and ensures that all identical values will be correctly grouped contiguously (which the above algorithms and the Microsoft's KB article do not). Once you have this grouping the for loop in fieldValuesAreEqual and the Hashtable trackData in kramlen's post are no longer needed.
hi
i need the windows vista demo
Hey yall, I have a wireless router (netgear WRN834B) and i just bought the wireless netwroking adapter, and i heard that its automatic. It connects to my wireless netwrok, but it cant confirm my IP adress for some reason. Can anyone help me out?
Thanks
Ugh. I'm jealous. I want a 'sparkly' name. WPF is bland...as if I needed yet another acronym to prove how boring my job sounds to others. hehe.
As in:
Me) "Hi, I work in wpf."
Person) "WTF?"
Me) "No, doubleyou-PEE-eff...and .NET and AJAX, too."
Person) "You clean floors with that, right?"
Me) No, it's for programming.
Person) "GEEK. lollz!"
Me) *sigh*
Usually the slick codename becomes a vanilla, acronym-ish official name (Avalon -> WPF, Atlas -> AJAX, Whidbey -> VS2K5, etc.). Good to see Microsoft doing it the other way around...coming up with something other than an acronym to name a new product. As a developer, I don't need the name of the product to describe what it does (Windows Presentation Foundation, Asynchronous Java and XML, etc.)...just make it SOUND interesting! Just say NO to alphabet soup! ;)
wooop woop go ft wayne!
TOTAL CHEER ACADEMY FLAMES ROCK DA HOUSE!
Jackie Goldstein u rule
"just pointing out how cool the intellisense is in the first place!"
This is a feature that is a very [yawn...] standard feature in any decent XML editor. I find it infuriating that a very obvious error in the XML editor and or XSD schema can be swept under the carpet with a 'oh how cool is that in the first place'. As if developers just need to be thankful that it WORK AT ALL. Just a reminder that licenses to use this cost a small fortune (ask any enterprise license holder like myself). I actually expect the product to just work (or be patched) like any software I sell to a client.
idem j'ai besoin de la demo vista
my xbox live wont work for the router and keeps saying DNS erro if u can help me u r the best k?
ADd me if u know how macca_lfc_2k6@hotmail.co.uk/macca_2k6_lfc@hotmail.co.uk
k thx!
I have used both methods and I still cannot form an opinion. I like that I can have multiple files with the same filename without any difficulty when I use a db. I also like what Mike said about file sharing.
My DBA's tell me that I shouldn't store documents because of poor performance. But when Microsoft built a document library handler (Sharepoint), they hold the documents in the database. They obviously think it is a good idea. So when the DBA's tell me that SQL 2005 was not designed with document storage in mind, it sounds a little specious to me (most likely left over paranoia from SQL 7).
i needed the added line also, without it the recurse never stop and u loose the "founded" control
thanks all :-), it realy helped.
How did you go about setting the updater block to check for updates from a webservice, i want to do the same i.e. passing user data and block certain people from updating there application.
The event handler for OnCheckForUpdate works but the other two dont, they never get fired...
Hi:
You can get your ip address by doing ipconfig /all
That will get you internal network IP off your pc and your default gateway or your router login.
When you say you want to access the pc from 'outside' do you mean from another pc on the network? or remotely via the net?
Was wondering if you could help me. I cannot find ANYWHERE, microsoft included, a complete list of all functions that can be used within CUMPUTE. I need to calculate the MEDIAN value (among other things).
Pat
Tonnes of thanks....
I went through this same debate not too long ago. Ultimately I decided to store my files in the file system and not as blobs in the database. I even managed to come up with a workable solution for full text searching them from within a stored procedure using linked servers.
The reasons for this decision were focused on performance. Using varbinary(max) you can upload the data in one of two ways: All at once through a single SQL call by creating a potentially HUGE byte[], or in chunks by making multiple SQL calls. I was concerned about performance on both the client and the server in the first case, and transaction support in the second case. Using client side transactions would make the second case less frightening though.
Using the file system approach I can stream the bytes in optimally sized buffers based on the filesystem environment we're operating in and without the overhead of a SQL connection and stored procedure call. I can also now store my files on a different server than my SQL server box and I can full text catalog them without affecting the SQL server's performance in anyway.
Thanks a lot. I tried to do the same trick with visible=false but it didn't work. Your solution was a big help!
Your site is perfect!
上篇介绍了交叉表的简单实现1:使用存储过程,这里采取在前端程序实现。实现要点:1。读取所有目标成绩(flatScroreTable)2。从目标成绩中提取考试时间(不重复),作为交叉表的列表头3。从目...
If this is going to be used in lots of places, I'd optimize it in the following way.
public static T FindControl<T>(System.Web.UI.ControlCollection Controls) where T : class
T found = default(T);
if (Controls != null && Controls.Count > 0)
if (found != null)
return found;
Can u send me the code in c# to store and retreive the Binary data in SQL
my IP address keeps failingand i havent got a clue what the hell an ip address is?????
on XP, goto Start > All Programs > Accessories > Command Prompt, then after its loaded up, simply type "ipconfig/all" and press return.
this will come up with information about your IP, DNS, etc and the ip address of your router.
Pingback from Xbox 360 game invite problem - India Broadband Forum
Eric,
Do you have any other suggestions. I've tried all the fixes, but I continue to get Access Denied. Thanks
Shahn
Nevermind. I've fixed the issue. I changed an attribute and the problem went away. Thanks for the other helpful hints.
i cant get past the ip adrees can any 1 help me
my MTu will not work and I don't know how to hook up all cables or were they go
i have an arris tm402p/na router but it only has on slot for a connection whenever i hook up the xbox live wire theinternet is disconnected. to be honest i dont even know if its a router it looks like one.
omg i cant get passed ipadress it keeps failing help me!@
在ADO.NET1.x
what the hell i don't use a router i just unplug from the tower of my comp and plug in to the 360 and i sign in and then about 2 to 3 mins later it signs out or logs out how in the hell do i fix it so it won't do it again or do i need a wireless for the 360 to in my inter or do i need a dam router or what
Hello!
That's exactly what I'm looking for, too, but i need to change the ownership of ~250 objects, is there a way to use the result of a query like "select name from sysobjects where xtype like 'U'" to feed the stored procedure with??
Thanks, Bernd
well it says nuthing is wrong but it isn't working and i'm the internet right now on my pc soo its must be somthing to do with them.
I'm sure my xbox is about to break AGAIN RING OF DEATH cause this is what it did last time.
Ipconfig/all will only display the local Ips, on you Lan, not on the WAN!
But you can get you routers adress on WAn with this program: Watch Wan IP, that you can get here: http://www.emc3.us/emc3ware/
It grabs it from you router, if you can access it.
Work well!
i cant get pased ip adress how do i get around it it says ip adress failed
that's what I was lookin' for ;)
Bye
Hey All,
Plz do not feel bad, but u people are suggesting the option of distinct for 1000 - 2000 records. Can anyone give me the solution to view distinct over 20000 to 50000 records with 100 user login ?
Compared to the MS KB this was a joy to behold.
Proving once again that concise code is a developer's (and maintainer's) best friend.
Much obliged.
- RK
my xbox ran out of xbox live time and i had a card that has never beean used so i put the card code in and it said time was added on your xbox live account. then i tried signing on to the game and it said i needed to be signed in to xbox live and i was it just doesnt work.
HELP ME PLEASE!!!!!!
You're welcome, Raymond. The fun part is that I posted this over 2 years ago. ;)
The comment by Jackie Goldstein about using the DataView class along with it's "ToTable()" method does the trick for performing DISTINCT on rows of a DataTable.
dylan did you tryenterung the code and befor you try to play sign out and back in thats what i have to do evrey time i use my cards mabey its just my 360...who knows? lol
i want to know how to install windows vista on your pc
Right ok i am trying to set up my new modem that i recently bought from the talktalk site but it says to set up put i the ip of your modem loated in the hardware manual but i kinda lost tht manual any ideas?
mail me on cezan1_afc@hotmail.com thanks :D
Are there any negative aspects of using setters and getters in this manner?
Not that I know of.
im having trouble with my ip addres how do i find that out?
well what if i was not conected to a ruter and i whant to know whats my frindes ruter ip address
or any body router ip from my computer is thare is any way like that or a program that serch for router's ip
Meghna, the xml datatype will help mainly in validating your xml (the stored procedure parameter) when bound to an xml schema collection at the SQL Server database level.
Same things, guys. The process is constantly eating 450-500K or memory just after machine is started.
My setup is a direct connection to an arris cable modem, I have comcast as a high speed internet provider. I got to the DNS and it says that it cant be reached. So e-mail me at alexlobo123@hotmail.com
Thanks, great article!
The sad thing is that SelectedColumns doesnt seem to work on a DataGridView when doing .net 2 winapps. I tried use that so that the user could choose columns to view as distinct.
This is excellent. It is very helpful for me.
mine too!!!! wtf!!! i tryed power cycling it over 15 times plugged cords in and out . but my wireless internet dont work either thats a problem
How do you disable the UPNP? I'm a bit of a tech n00b. Thanks!
I have an arris cable modem and a 360 i hook it up and it got to the DNS then it failed now the ip failed. My computer said there is an ip error. i need help.
people are having problems with i.p address? well if you have a router then you should at least set your i.p address manually to your 360. your router usually ends with .1 and if you have a pc connected that should end .2 lastly 360 should be assigned to .3 then go log into router and port forward (info can be found by searching Port forwrding in microsfts site.) the bingo.
config manually -
i.p = ***.***.*.3
subnet mask= 255.255.255.0
Gateway = ***.***.*.1 (router I.p)
DNS PRIMARY = (same as Gateway)
Secondary = 0.0.0.0
My xbox is directly connected to the netgear gateway via a cat-5 ethernet cable. It connects, and I can play for 10 min, 15 at most after which the gateway restarts itself. Then it takes me about 10 min before I can log back in. I have comcast high speed internet. Anyone out there with similar problems? Anybody know what to do?
I know this code is old, but is it possible to post it on your site as the link to GDN no longer works?
Sorry, John, I no longer have the code. If you're using .NET 2.0, pretty much all the features I had are in there now. Good luck. :)
The hashtable method works great!
Came across this discussion through a Google search. Did you ever find a good solution?
I found these two pages that talk about using a Windows based app called SQLyog. I am not sure if it is still free though.
www.sitepoint.com/.../mysql-data-sqlyog-job-agent
www.databasejournal.com/.../1584401
The code doesn't select distinct values if the column contains values that are different in case only.
Setting the Case-sensitivity of the Sourcetable to True (as suggested in one of the comments) works, but makes it much slower.
Any suggestions?
Autodocumentation is meaningless and only makes code harder to read maintain.
It states the obvious, but the point of documentation is to explain the non-obvious.
Thanks - this did the trick for me, too. One comment, though: I came from an Oracle background, and thought I had to put parens around the arguments. So, to note for other sql server newbies, it's just:
exec sp_changeobjectowner 'tablename', 'dbo'
and not:
exec sp_changeobjectowner( 'tablename', 'dbo' )
the code from this page is not working
INF: SQL Server Procedure to Change Object Owner
what if i got the ip from a friend computer(the one given by www.whatsmyip.org) is there a way to know his router ip address? please contact me at jose_ram_rat @ hotmail.com
my DNS wont work and im connected straight to a router
im connected straight to a router and my DNS doesn't work somone plz help me
有些时候需要从DataTable中选择出在某个列上相同的值。但是DataTable.Select没有提供这样的语法。于是,微软和一些其他大虾提供了解决方案。据说以下这个是最快的:privatest...
i am useing a webstar modem wen i pluck ethernet i fail on ip
umm whats UpNp? cause ive been trying to get my internet to work with my 360 and like it says IP address failed... and i cant get a connection to work.... so help! lol plz
crap whats my gateway, it says Default Gateway... have no idea how to access it...
My setup is a direct connection to an arris cable modem, I have comcast as a high speed internet provider. I got to the DNS and it says that it cant be reached. email at chardiscj@yahoo.com
My contribution; modified to return a List<T> of all controls matching T using a ref variable.
public static void FindControlsByType<T>(ControlCollection Controls, ref List<T> returnList) where T : class
foreach (Control controlItem in Controls)
if (controlItem is T)
returnList.Add(controlItem as T);
FindControlsByType<T>(controlItem.Controls, ref returnList);
I put my ip address in as automatic and reset it, and it still won't work for xbox live. It fails everytime, and I even put in a manuel ip address and it still won't work. How do i find my xbox ip address so i can get onto xbox live?
Please help guys
We've never stored file data in the db. Mostly due to historical reasons around performance (piping the data through ADO used to have poor performance). So we too store data on a file server. It creates problems (syncing, transactions etc), we've been waiting for WinFS for years ;-)
Regarding security. We were concerned with this too (we're actually more concerned with the rogue employee behind the firewall having unauthorized access to the share). The web process runs as a local anonymous user (no network privs). Then we created a COM+ object that runs as a domain user (providing "proxy" access). Only this domain user has access to the share. The domain user cannot logon locally, only as a service, and the password is 100+ random generated characters (at install and thrown away). The API of the COM+ is such that you don't simply provide a URI, rather you provide a key that is looked up in the db. Everything happens internal to the API call. So somebody can't recursively dump the contents of the share (or access other content), you have do know the document ID and request it specifically (and the ids aren't sequential). This domain proxy user doesn't have access to the folders on the local webserver either - only the remote share.
We also have one domain user per webserver, and those users are wrapped into a domain group (the group has permissions to the share). There is also a read-only group, and write-group (plus a backup group for running backups). This allows us to audit access on a per web server basis.
my dns wont work and ive tried getting a diffrent server number from my isp (charter) and tey don't work
i have a wireless computer in one room which the xbox is in to, but another computer with the router and modem in another room. can i get xbox live from the wireless computer? i tried the only way i got it to work is to bring the xbox into the other room and plug it straight into the router and play on my other super small tv. any suggestrions??
When i try to open an xbox live account for the first time it say i have to download an update. So when i agree to do it i get a message saying COULDNT DOWNLOAD UPDATE. PLEASE CHECK YOUR CONNECTION SETTINGS IN SYSTEM, NETWORK SETTINGS AND TRY AGAIN. But when it gets to the xbox live part it says i need to download the update. I tried xbox.com/support and i cant see anything there to help me. Can anyone help me!
Where do you disable the upnp at on your xbox ?
Cool, works like a dream!
I have been using Row_number to implement the age-old problem of paging. It worked extremely well when you used the indentity sort such as
Awesome performance:
SELECT ROW_NUMBER() OVER (ORDER BY c.IdentityColumn)AS [Row],
but broke down when you sorted by varchar non_identity column such as...
Horrible performance:
SELECT ROW_NUMBER() OVER (ORDER BY c.FirstName asc)AS [Row],
I found that the bulf of the time in the query was in the transport of the 500K rows back to my grid. Reducing this to 20 at a time was the difference in a 4 sec query and a command timeout. The problem arose wehn I had to imlpement client sorting with the grid column header.... any suggestions for using off nidex Row_number(). Thanks
my 360 is connected directly 2 a modem and it says the ip adress fails every time but it is wired correctly what should i do
allright my xbox 360 is directly connected to modem. Ive power cycled like 1000 times, done ip settings manually, put my physical address in al MAC address
Tryed almost everything can ne1 help
since me and my friends upgraded our internet to virginmedia our xbox live has been working better then before. they helped alot solving dns problems. you are better off choosing them. incase you need to open ports then email your router brand saying your xbox blah blah blah....
if the dns is a problem your internet provider should be solving the problem ...!!
i reccomend virgin media!
I go to the XBox live new acount screen to set-up an account. I get all the way to enter the prepaid subscription code. I enter it. I press continue and it says "Do to technical difficulties unable to continue. Please try again later." Can anyone help me? I bought the subscription card 4 days ago and have been trying ever scince!
my Ip Address Keeps saying failed what do I do
我们有时候需要对DataTable中数据进行Distinct处理,过滤掉重复的数据,本文给出了解决方法:
Thank you. Your solution worked for me.
As The Title Says!!! You are a f***ing legend, WAS hackin away at it for at least an hour an a half and 100 webpages.
Cheers
ayo im unable to connect to xbox live for halo with ym xbox (normal) is the server down or something? cause im stumped here
I was trying to select some distinct rows from a DataSet datatable. After consulting Google and finding
Posting this for everyones information. I created my own app_offline.htm file (which contained content) and users would received a 404 error when attempting to access the site intead of seeing the content of the html page. After some testing I noticed that if your app_offline.htm file doesn't not contain the same document type reference (at the top of your html markup) that the auto generated visual studio app_offline file contains the user will never see the html content. Note this might be why Sunish's friend was getting that 404 error.
Document Type Reference:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "www.w3.org/.../xhtml11.dtd">
For some reson i can get on xbox live but u c like take halo 3 for instance it gets on but if i pick slayer or something it wont find anyone that will play with me so i really dont no whats wrong with it and i need some help
ok wont connect wont update not really understanding all this uPNP thing any body explain it in stupid person terms????? would be highly grateful
Top work..!!
Wait I dont know where to go to to disable the UPnP? c'mon please help me!
VB Code:
------------------------------------------------------
Public Function SelectDistinct(ByVal SourceTable As DataTable, ByVal ParamArray Columns() As String) As DataTable
Dim Result As DataTable = New DataTable()
If SourceTable IsNot Nothing Then
Dim DView As DataView = SourceTable.DefaultView
Try
Result = DView.ToTable(True, Columns)
Catch ex As Exception
End Try
End If
Return Result
End Function
C# Code:
public DataTable SelectDistinct(DataTable SourceTable, params string[] Columns) {
DataTable Result = new DataTable();
if (SourceTable != null) {
DataView DView = SourceTable.DefaultView;
try {
Result = DView.ToTable(true, Columns);
catch (Exception ex) {
return Result;
If you want to through the exception (when column name is the distinct columns list does not exist in the table or any other exception), just remove the Try Catch block.
Hope this will help you.
can someone please tell what to do with the ip address ive tried everythink i even called microsoft bt it stil didnt work..it just keep saying ip address failed but the rest is fine so plzz tell me?? btw im connected with AOL
i cant find my ip address som1 plz HELP ! !
hi guys hope someone can help.
i just got 360 and new vigin media broadband upto 20mb
i connected to live and had some good games when finshed i shut down 360 swaped ethernet cable from 360 to laptop when i tried to get 360 back on live it wouldnt connect tried xbox live test and ip address failed any one no how i can reconnect do i require a router or can i reconnect some other way like renewing ip address. please help guys thanks
Thank You Very much......
i want to connect to xbox live because i was never on it before.
all the connections work fine but i have to download this update.
when i go for yes i does'nt do Anything and it says check your connection.I DONT KNOW WHAT TO DO.(when i go for no i sings me out).
HHHHEEEEELLLLPPPP!!!
ok im having trouble joining peoples parties on xbox live and i think it is because of my strict nat on my router is there anyway i can fix that without buying a new router please help me if you can my friend said something about disableing my upnp
How do i find my routers ip ?
Ipconfig never found it.
Pingback from Windows Vista Install Demo
weblogs.asp.net/.../facebook-beacon.aspx Thoughts?
Lets use lets instead of Let's ;-)
Phil.
Ha, thanks, Phil! :P
Pingback from Facebook Beacon Now Lets You Completely Opt-Out
I've also had problems at first when using ROW_NUMBER() on some large tables during testing (1 million rows). It was about twice as fast then when I had used cursors and a table variable to fetch id's from an absolute row and the next N+ rows for the page. I tried making another procedure to use the set rowcount method, but it took a little bit longer than the ROW_NUMBER method.
I created a table Item(ItemId uniqueidentifier, ItemName varchar(36)) and assigned a PK as well as an Asc index on ItemName.
My basic tests were the following: Search against 2,097,152 records for the letter "a" on page 60,000 with 10 records per page sorting on "ItemName".
INSERT INTO item VALUES (NEWID(), CAST(NEWID() AS VARCHAR(36)))
-- keep running this next line until you have over a million records affected
INSERT INTO item SELECT NEWID(), CAST(NEWID() AS VARCHAR(36)) FROM item
ROW_NUMBER took avg 22 seconds
SET ROWCOUNT took avg 28 seconds
DYNAMIC READ_ONLY CURSOR took avg of 44 seconds.
setting rowcount had a good effect on my original cursor query, but it still couldn't compete with ROW_NUMBER.
ItemId,
ItemName
(
ROW_NUMBER() OVER
ORDER BY
case
when @Sort = N'ItemName' then ItemName
end asc,
when @Sort = N'ItemName DESC' then ItemName
end DESC) RowNumber,
from
Item WITH (FASTFIRSTROW)
where
ItemName LIKE N'%' + @Search + N'%'
) AS Page
Page.RowNumber BETWEEN @StartRowIndex AND @EndRowIndex
Page.RowNumber asc
I just put the following into my app_offline.htm file and I stopped getting the resource not found error.
<html>
<head>
</head>
<body>
We are currently down for maintenance.
</body>
</html>
I'm running it now too at home and have already sent about 5 suggestions to the yahoo team. overall i think it's quite good looking.
I'm in the latest windows live messenger beta and the thought too crossed my mind "wait... why does the new msn messenger look just like the old one. and why aren't they doing a WPF app like yahoo?"
Ok here goes......... im a rookie with this so please help me in simple steps. My xbox is chipped by a friend and he said i could get into xbox live. so i went in but then it said xbox live is updating your system please don't turn off your xbox console. but nothing happened then it said xbox live is not responding please try again later. so i restarted my xbox and EVERY SINGLE TIME THIS KEEPS HAPPENINING!!!!!! so my point is i don't want to know how to get on xbox live just how to play my normal games that i have on discs. if you can help me plz send me an email azn-pride-@hotmail.com or just leave a comment on this forum. Thanks
LiNx!
Awesome. Saved me HOURS of pain and heartache.
sp_changeobjectowner 'tablename', 'dbo'
i have jus invested in an xbox!!!i bought the wirless adapter and it connects straight away,,but my ip fails,,,can anyone help?/without this i cant play onlineor recover my gamertag thnkz skeptikz@hotmail.co.uk
ok i am not good wif computer so some 1 please help me
i got a hous ecomputer connected through cable then a i got a a netgear router conected to the bigpond cable box thing and my laptop has a netgear card and and conneces wirelessy now wen i try a erthener cable to my laptop from my 360 to connect to xbox live on my coputer it says it connect at 100 mphs but says status limited or no connectivity and wen i go to conection setting advanced setting to allowe other connections through some error message comes up saying another thing connect or someting using automatic ip or some shit like that n didnt let me any one kno what i mean please help me dnt have money to go spend 160 on that 360 router thing pleas help
can some one add me on msn
anth.p@hotmail.com
i need help please to connect to xbox live
It would be nice if there was a code download with a very simple example...for those of us trying to shed our noob status...;)
Disable UPnP under the tools section on your router, worked like magic for me too.
i dont really know much abut computers so whats a UPnP and how do you turn it off
I CANT GET PASSED THE IP ADDRESS AND IM GETTING PISSED PLEASE HELP ME I JUST GOT IT FOR X-MAS AND I REALLY WANNA PLAY IT
i have subsripition code for the regular xbox and it wont let me in xbox live. plz help me, thx
i cant get on live HELP me
my internet keeps saying that the dam ip address has failed if any 1 has any ideas please email me at coolquadkid@hotmail.com please its really really stupid oh and dylan for the ip address go to start then go to control pannel then go to network connections then go to ur connection that u have then click properties and it should be there
If you are trying to connect to xbox live through a laptop's ethernet port how do you change the settings on the laptop to send the connection to the xbox360? I know it works with Windows Xp but I have Vista
This is weird.. Just today while I was trying to join a game in Call of Duty 4, A black screen appeared and it kept on giving me messages that my Live wasn't working. So, I popped out the disc and went to the Dashboard, and tested my connection. Everything was fine. So, I connected to my Live (I was already signed in and my GT) and hit "Connect to XBox Live". It showed the loading screen but roughly two seconds later it stopped and put me back a the dashboard screen, still showing the "Connect to XBox Live" button. It wont let me get in! If anyone has an answer, just comment again on this wall. Thanks
Ok im trying to log into xbox live and it says in order to log into xbox live you must first perfom an update, ok so i try and perform the update and it says 'update cannot work because you are not logged into xbox live please check your connection' but i obviously cannot log in because i need to update xbox live.. what do i do!
I have a arris cable modem and i cant connect to xbox live... it sais... networ adapter: wired, ip: comfirmed, dns: failed... im getting soo mad cuz i wanna play on live please help me!!!
people, thers nothing wrong with ur routers or internet connections, its just that live has been down for the last few days casue of all the new users, just give it a few days, should be working fine again
Pingback from FLUX AGGREGATOR only FREE ?? Blog Archive » JavaScript Ajax IntelliSense
my 360 is saying that the system wont update and that i should check connections....i id and everything is fine and it still says it...WHY??????
PLZ! someone help me! i have been trying for 6 hours straight to get this stupid thing to work! it keeps saying that my IP address is incorect and its not! Because I alled up my ISP! I called Xbox support and they told me that because i wasnt using and ISP that didnt have the xbox logo or wateva they couldnt help me! I need some help badly. I have tried soo many times. Pleaseeeeee helpppp!!! ASAP!
code error: 12pm is showing as 12am
I have open the correct ports and disabled my UPnP. When I run a network test all items pass up until Xbox Live. It asks me if I want to apply the update and then once i confirm it says cannot download update. When i check status of Xbox Live it says it is online..???????????????????????????????????????
Microsoft sux!! Should have bought a PS3, cheaper (full kit), wireless built in and no problems getting online. Microsoft always get their users to test their products. I should be getting paid for this shit. Any ideas how to fix problem?????
I am trying to connect to live with a direct modem conection.Do I need to disable the UPnP?
anyone who has trouble with their IP address...
to find out your IP address go (on your computer) to Start then RUN and in the RUN box enter cmd (short for command), once the box is open, enter the command ipconfig.
that is all; your IP address Gateway and subnet mask should be there
i'm not very technical so could someone tell me how to disable the UPnP?
We are attempting to store files in the database and all is well except when trying to delete a file from the web app. It seems that the stored procedure that deletes the file is taking a long time to run and it nevers returns a value back to the web app. I'm not sure why this is happening but if anyone else has had this issue, please let me know how you fixed it.
jimkiely@yahoo.com
my cable is hooked to my laptop. i have verizon wireless card in my laptop for internet. when i test the connection it says my ip address fails!!! been tryin for hours. please help
My xbox wont do the update thing when im joining!
WHY?????
okay on my xbox live i get to play maybe one game then the router shuts off. have any idea why?
can i get the windows vista ultimate product key that will work for activation if so send it to my email trhl4589@yahoo.com
when I turn the xbox on without internet connection I can not get passed the message "xbox live is not responding please try again later" I dont want internet connection, I just want to play a normal game. How do I reboot passed this message? Thanks.
Hey I just got internet I had to manualy set up everything I have a an arris cable modem and the only thing I need iz for the dns server to be found. I looked it up on my compture I had three numbers but they didn't say primary or seconday so what do I do?? Plez I'M me if you can
Ejplaytime-aim
SINIStER-Jr-hotmail
Texasismyspace-yahoo
Plez help
在DataTable中实现DataTable.Select(
I kno what to do now if u run sumin like mine cut your compture off becuase u can't have to thing on tha dns server at the same time
I think the best thing of VB is 'With'
With people
.Name = ""
.Age = 20
End With
But the 'Dim a As Integer' sucks
And the 'Property' sucks too
sup guys,
how do i get my xbox to share with the computer.
this dude said you have to go into windows and turn it onto sharing but i dont kow where windows is.
please help
My dad sent me an email with this link in, and I have to say, it is one the funniest things I have seen in a very long time. Good on 'Billy G' for taking the time out to prove to the world he has a great sense of humour. I will never install another microsoft product without thinking of this clip. :) Thank you for really brightening my day up!!
when i test my connection everythig works but when it comes up saying you have to update your xboxlive it just wont work what will i do
please explain in simple english!!!!
tnx
Anytime...glad you enjoyed it! Aside from that, I think it's interesting someone would pass a link in my blog around. :)
Have you reported this on connect? If it doesn't get reported (and voted on) in Connect, what makes you think that MS will fix it? (They don't fix bugs that they don't know about, or think is unimportant.)
Mike,
I work at Microsoft and already passed it along to the team.
-Erik
Try using disk management to assign a drive letter to it, I have the same problem with my external hdd
I have a 360 and the ip keeps failing ive tried power cycling and many other things i have a wirless network adapter and i have tried typing in ips manually for my xbox 360 i have yet to disable the upnp so i will do that later and see what happens. other than that i am getting very angry. if you would like to help i would love it. email me with any information on how to fix this problem. ctfelhaber@aol.com
i cant sign into xbox live...i did the test connection everything it working fine (ip adress, dns, mtu ect) but then it says xbox live: failed...then i read the discription its says, " failure on any of these tests will prevent you from signing in to Xbox Live. If your console passes all of these tests and still cannot contact Xbox Live, verify that your account information is accurate and up to date."
wat the heck does that mean?? please answer!!!
i got my xbox wireless gateway for my xbox, 2 days after christmas and i cant set it up because of the ip adress keeps failing please can you help me because i really want to play it, and how do you find your ip adress to put in
but how to deal with the dropdown portion right edge out of the screen???
at the moment ive spent almost 5 months working on the stupid xbox 360.my DNS says it has failed it happens over and over again im with AAPT ive rang up microsoft,xboxlive support and AAPT ive tried evrything. im connected through a Dlink router+modem. at the moment my settings are
IPaddress:192.168.0.110
DNS:192.189.54.33
Secondary DNS:192.168.0.1
Gateway:192.168.0.1
Subnetmask:255.255.255.0
if u can help do so i got it for my B'DAY and that was in september.
MAN!!! I cant get through the damn DNS crap, I have been trying for days but this is it i am done with the
bs! someone Plz help! I a have a Arris s*** modem and Comcast. I have tried it all, and am about
to call Xbox customer support.
WOW!! Do not call Xbox Customer Service even if your
Worthless s****y life depended on it!, that stupid
cpu voice can't help for s***!! it tells you all the
same basic crap info!
hello, I was wondering if you guys came up with a solution for this. Please let me know by email me at amit@georgiaaqaurium.org
thanks
how do u disable the upnp? i have no idea!!!!!!!!!!!!!!!!!
any1 plz help me
Is there any alpha release download, I'm really waitin for!!
Thanks a lot.
Here's a general routine for those times when you have a whole bunch of logins to fix.
declare @name varchar(100)
declare @command varchar(100)
declare filecursor cursor for select name from sysusers
open filecusor
fetch next from filecursor into @name
while @@fetch_status=0
begin
use [database_name_goes_here];
select @command = 'exec sp_change_users_login ''Auto_Fix'', ''' +@name + ''''
exec (@command)
end
close filecursor
deallocate filecursor
No, not yet. I'll post about it when there is (as will lots of other people).
My xbox wont let me join xbox live because of the DNS error thingy. How do I fix this. E-mail me at unwittingcorpse31@yahoo.com.
'Begin gratitude
Dim i as integer = 0
While 1 <= 10000000
Response.Write("Thank You!")
End While
'End Gratitude
can someone please help me, ive had the problem at the VERY top of this page, how do i disable UpNp???
To loop through distinct rows you can try:
foreach (DataRow drDetail in dsInvoice.Tables["tblRMA_Detail"].DefaultView.ToTable("tblDetail", true, new string[] { "Style", "Color", "Ident" }).Rows)
{}
im going to get my bb gun and waste the clip on my xbox i got a new xbox and know it wont wireless connect and im going to shoot myself in the head wtf..
Xbox sucks. I do tech support for a router manufacturer and I never have any issues at all with Ps3 or Wii. Xbox support tells people they need to port forward if they arn't getting an IP address (which is impossible if your not even getting an IP address to begin with). They also tell people they need to change their MTU to 1364, which is retarded(as long as it is OVER 1364 you are fine). Xbox support would be better handled by monkeys. Just wanted to vent. Xbox has made my job suck. All you have to is DMZ host the IP address of the Xbox; that is the quickest fix, and uPnP should be enabled NOT disabled for the Xbox to work as the Xbox supports uPnP and what enabling uPnP does it is it allows the port forwarding rules to be setup automatically on the router. By the way all of you suck, get jobs and stop calling my phone. I don't care that your Xbox doesn't work, assholes.
Wonderfull. Am worrying for days how to transfer ownership. You saved my time. Thank you.
For the n00bs, you need to have the full "path" to the object as part of the syntax (at least with SQL 2000).
E.g:
sp_changeobjectowner 'dbname.dboOwner.object name', 'dbo'
Thanks a lot. Great code Aftab Ahmed!
There is a paper on the performance of saving files to filesystem vs. database. It seems that for files under 256 kb the database does better than the filesystem, and for files over 1 MB the filesystem is the clear winner.
The link:
research.microsoft.com/.../view.aspx
Hi Eric, nice post!
Iam curious about how you "templatized" your user controls. Do you have any more post about this?
"All our controls are now ascx files with the CodeFileBaseClass set to a class that implements all the code" , are there any place where you explains this a little more?
Iam using a VPP where the files are read throw, but when it comes to the "templatizing" iam lost :)
Any response on this comment would be appreciated! Thanks!
David, I don't really have anything to post. Basically we just have ascx files and their code is in a base class and you can use that class for many ascx files, so if you want the layout order to be different, then just create a new ascx and point it to the same base class and it will render differently. We plan to eventually post all our source code on CodePlex, just haven't had enough time yet to clean it up. Keep an eye on the project here ( http://www.codeplex.com/EvNet ). That's where we'll eventually post the source for our platform that runs all our sites.
That saved me a lot of time. TY
Very very funny :)
I have a weird problem with the last optimised solution in his stored proc. It returns a completely different resultset.
the problem seems to be that it ignores my where clause I specified on the SELECT @first_id = ....
WEIRD.
Aaah, sorted it, it is because of my complex order by's.
One question about this whole scenario though. It is all well and good to have these ligtning fast solutions that always shows how to do the quick returns on queries, but in reality this is far from a real-world solution. For example, I have 180,000 records that can easily be returned using this super fast ROWCOUNT SET query, but there will always be order by columns etc. And in reality not just one or two, but multiple, then you are pretty much back to square one where you have to serialize all data and then select a subset, OR am I wrong, is there a better way?
Ryk, we use the set rowcount method with lots of order bys and it's still really fast. one thing you can do to increase the performance (but greatly adds to the complexity of the sql statement) is that if the page you're requesting is past halfway through your "pages" of data, then reverse the sort order. Actually, it might not complicate it too much, just use a case statement in your order by.
We're using this method on 4 high traffic sites at the moment (5th coming soon) and have no problems with performance.
I want some one to help me with a code to loop trough and array and print the contents on an array on a list box
This is a very helpful post for people not on framework 2.0 and up. Just thought I would pitch in.
There was one post earlier on using stringbuilder but the one thing I did not quite take was the using hashtable part and also the fact that the code needs to handle nullable values as well. Coding with hashtables can really take a hit when you are dealing with real large datasets.
I think the following logic could be a lil' faster. Hope this works :)
dtSource ' source table
dtOut 'distinct table
columnNames ' array of the column names
dtOut= dtSource.Clone
dim x as string= string.empty
dim y as string=string.empty
for each dr as datarow in dtSource.Select("",String.Join(columnNames))'sort the table
for count as integer=0 to columnNames.count-1
if not isnull(dr(count(ColumnNames))
x+=cstr(dr(count(ColumnNames))
end if
x +="," 'seperator
next
(if the columnNames length is the same as dtSource.Columns.Count you can use String.Join to generate the content of x.)
if not y.equals(x) then
dtOut.ImportRow(dr)
y=x
next dr
I did not use vs editor to code the above. So the syntax may be off.
Good luck-
Vin
my xbox 360 wont get online cuz it says dns test failed. everything seems right but it said it was 0.0.0.0.
what do i do?
I was going to use SQL server but when i saw your blog, i am planinng to use oracle for db
DirectCast(MyArray.ToArray(GetType(SomeClass)), SomeClass())
^ I've been struggling with this for a good while now. The directcast was just what I needed. Thx for a good article, even if I am years behind....:)
great tip - only enhancement if you know how, is if I am using the ValidatorCalloutExtender from AJAX.NET, how do I get the message to position properly?
cheers
I got below message after Using DirectCast
"At least one element in the source array could not be cast down to the destination array type"
I did all the steps mentioned but i still get the download silver light alpha picture when i run the default.html page.
I've also added the MIME required and still not working.
Can someone plz tell me the following steps that should be done to let it run?
I have WinXP Pro + SP2 & IIS 5.1
Ha ha :) I think Microsoft is taking a good direction with the videos I have seen lately, makes them more approachable.
I wonder if anyone ever considered doing live video, which always enhances the err. approachesness? Siwthcing back and forth between a couple of rooms, maybe have one camera man travelling the corridors of that oh so mysterious HQ? And I got just the software to do that (vidblaster.com/.../index.php). This is no shameless plug, only want to help Microsoft :)
Hey Someone please help me i need to find out how to sign in to xbox live. My shaw highspeed internet connection wont let me sign in to xbox live even after i went to automatic, and then i put the IP from my computer and my DNS on my computer on and it still said on the DNS that it failed!! someone explain to me how to go ONLINE ,, I SERIOULSY NEED HELP
HumanCompiler: How do you use this method with sorting (other then the ID field) ... ? Can you provide an example, I can't seem to figure it out
If you get a 404 error, then pad your app_offline file with comments. I think once it exceeds something like 512 bytes it starts working
HOW TO GET IP ADRESS
-click start
-click run
-type cmd
-type ipconfig /all (yes there's a space between ipconfig and /all and don't type whatever's in the brackets)
There should be you ip, subnet mask, default gateway and dns.
and use google next time you dumb *****.
when looping through arays i find it better to use this method. This way if the ary only has 2 items in it you dont loose or error.
Dim i As Integer = 0
Do While i < TransactionNumbers.Length
i += 1
Loop
to fix the error with 12pm showing up as 12am, change the last 12 in the code to an 11. (or change the last 12 > to 12 >= )
But good code anyway. Thanks!
Even if "customerId" can work, using persistency frameworks often naming conventions using the same names ("id") can help in many situations. Think about find and replace in SQL batch scipts and more. I know nobody will make plans for workarounds and this shouldn't be the most important point of the discussion, but it's a little +1 for plain "id".
Linq vs. Row_Number
I've been testing ROW_NUMBER on real big databases (4+ million rows) and it just fails to provide decent results.
Using the rowcount gave me a solution. Even using the TOP/NOT IN approach works for page not so far from the begging.
Now, the point is that Linq over Sql 2005 generates the row_number approach. It just blows the machine memory before returning any results.
The question is, to make this work on this context, do I have to write my own SPs? Why don't Linq implements a better algorithm?
This line
(from e in db.Events orderby e.EventDesc select e)
.Skip(pageIndex * pageSize).Take(pageSize);
Generates this
exec sp_executesql N'SELECT [t3].[EventDesc], [t3].[EventDate], [t3].[EventStatusName], [t3].[EventTypeName]
FROM (
SELECT ROW_NUMBER() OVER (ORDER BY [t0].[EventDesc]) AS [ROW_NUMBER], [t0].[EventDesc], [t0].[EventDate], [t1].[EventStatusName], [t2].[EventTypeName]
FROM [dbo].[Event] AS [t0]
INNER JOIN [dbo].[EventStatus] AS [t1] ON [t1].[EventStatusID] = [t0].[EventStatusID]
INNER JOIN [dbo].[EventType] AS [t2] ON [t2].[EventTypeID] = [t0].[EventTypeID]
) AS [t3]
WHERE [t3].[ROW_NUMBER] BETWEEN @p0 + 1 AND @p0 + @p1
ORDER BY [t3].[ROW_NUMBER]',N'@p0 int,@p1 int',@p0=10,@p1=990
Take note of the things that you need to do also after the port forwarding:
• Go to the Administration tab and uncheck/disable UPnP then save settings.
• Go to the Security tab, uncheck the box labeled Block Anonymous WAN or Internet request then save settings.
• Go back to Basic Setup, set the MTU to Manual and then change the value to 1365 then save settings.
I was advised to do these things after forwarding ports, but 1365 is the min MTU for Xbox 360 and isn't UPNP enabled required to maintain open NAT.
Nevermind...
techsup pretty much cleared this up.
Thanks to everyone for helping me make my nephew happy.
I NEED ACTIVATE MY WINDOWS VISTA ULTIMATE IN SPANISH DEMO VERSION
THX
DIEGO ESCOBAR
What about following kind of XML, I don't think its giving you the same output as you are showing here.
<DSID ID="123">
<Field name="A">
<F_Data>Value1</F_Data>
<F_Ops>IN</F_Ops>
</Field>
<DSID>
It is silly that a normal sql statement cannot be used.
I need a count and a average. Has any body done this?
i take this code from microsoft code gallery site, when you run it will desplay your WAN routers' IP Address
static void Main(string[] args)
//String strHostName = Dns.GetHostName();
string myExternalIP = string.Empty;
System.Net.HttpWebRequest request =
(System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create("www.whatismyip.org/");
request.UserAgent = "User-Agent: Mozilla/4.0 (compatible; MSIE" +
"6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)";
System.Net.HttpWebResponse response =
(System.Net.HttpWebResponse)request.GetResponse();
using (System.IO.StreamReader reader = new
StreamReader(response.GetResponseStream()))
myExternalIP = reader.ReadToEnd();
reader.Close();
response.Close();
Console.Write(myExternalIP);
Console.ReadLine();
eng. Nasser
i have a arris modem and i connected to live once and got my gamer tag and everything set up when i was done i connected my computer back to the modem and now when i tried to connect my xbox to my modem it fails at the dns part ever time
what is a UPnP
ok so i am bridgeing my connection from my latop which is wireless to my xbox it conforms the connection and the ip address but the dns doesnt work. i was able to play halo for 2 days then it quit working. when i go into the xbox dashboard it says im connected but when i put the game in i get disconnectd. i clicked the share network box in the settings and tryed other things nothing works. please help!
I am working on a system using both technologies. Overall, we are finding that under load file system fares better, but we decided to use SQL server for "secure" data. The files stored in the DB are around 500KB on average, and the data is basically "read only", i.e. is preserved for long time, so no updated or deleted are necessary.
The point I'd like to stress is that it's difficult to butcher a filesystem implementation (from programming standpoint), on the other hand, developing efficient SQL implementation (with C# in our case) was a "incremental" process.
Regards
Yuriy
I cant past the stupid ip setting it keeps saying failed and it is imbossible i have done everything i can what do i do can u plz email me lloyd_is_da_bomb@hotmail.com thanks
it says something wrong with ip adress & i typed it in manualy cuz i found the ip & dns & all tht
as unix guy said, your default gateway is the ip address of your router. i think to test the theory, you could try using ping "default gateway" (without quotes obviously), and then turn off your router, and try again (shouldn't work with the modem off. then if possible, turn the router back on, and you modem off. the ping command should still work this time. this will tell you if you default gateway refers to the modem, or the router. if it doesn't work when the router is off, then the default gateway is the ip address of your router *email me at ill_bribe-you@hotmail.com to let me know how you get on*
Sharepoint services does not seem to perform poorly when checking documents out of the database. When all documents are stored in db, it is so easily scaled and portable that maintenace becomes a breeze. Imagine having to manage 40 000 cv's when moving to a new server. To many files slows down the indexing server as well. DB file access performance will improve as this will become main stream. It is maintenace paradise for the support guys. Most documents and images that has a quantity in the thousands are less that 256Kb on avearage anymay!
Thanks. This was very helpful and saved me a lot of time.
how do ya disable upnp whatever it is
i have the same problem . its been months i am sticked with this problem. my toolbox items are not selectable its grayed out. i have tried resetting it number of times. how do i delete the file toolbox.tbd?where is it located? can u please five me the detail procedure. i am fed up with this problem. I have tried installing vs2005 , vs 2008. nothing works.
si pero como podria ejecutar toda una aplicacion offline sin estar conectado a mi servidor y en un momento dado todos lo que realiza en mi aplicacion pueda actualizarse con lo que tengo en mi servidor
my xbox keeps sayind having technical difficulties wat do i do som1 help plz
Thanks for the wonderful code, Aftab.
Hi this is Criss butcher from from halo, one big thing about having a wireless router, is it is a Windows Vista or a uPNP. A uPNP as a little more complicated then a
Vista because Microsoft uses windows based servers for all LIVE enabled games.
I'm having problems with live, when i turn my xbox on it tells me I am logged into live. However the dashboard won't load and I can't see any of my friends online, then it kicks me off line. I tested my connection and everything cleared. Any suggestions?
I get past the ip address and DNS but it wont let me get past the MTU and i dont know what it means
can someone please help me!!!
Listen if your ip address fails turn off your modam and turn it back on when its pluged in to your xbox as for any other issues this might work too
Whenever I try to do the xbox live connection test on my xbox 360, it fails on the xbox live part. It does not tell me that I need to do an update. I have an comcast and an arris 402.PLEASE HELP!!!
i have verizon fios and the xbox can find the wireless network .. but the IP adress doesnt work .. it says failed .
my email is beantownmike22@yahoo.com
Hi , I see your point is true in case of Low memory server ,
but when i tried in my real server 8GB ram and on a table the heavilly searched it works very fast ( less than 1 second)
WITH CC AS
SELECT *,
ROW_NUMBER() OVER (ORDER BY forename) AS 'RowNumber'
FROM contact
)
SELECT *
FROM CC
WHERE RowNumber BETWEEN 200000 AND 200100;
MY XBOX WONT UDATE SO I CAN JOIN XBOX LIVE PLEASE HELP
An easier way to do a select distinct for a datatable is shown here: www.c-sharpcorner.com/.../BlogDetail.aspx
If our original datatable is dt and we want to save the distinct into a new datatable newdt, then
string[] distCol = {"col1","col2"};
newdt = dt.DefaultView.ToTable(true,distCol);
ok, i have a Wireless adapter and i can NEVER connect to xbox live, i tried to hardwire and still not all the time, its really pissing me off i dont know whats wrong, all the computers in my house work fine. its annoying please tell me if i did anything wrong or didnt do anything in the first place? please this is annoying
I see a lot of people saying that the DataView's ToTable method provides an "easier" way to do this.
They're right, it is easy. But if you read the comments carefully you'll see quite a few people stating how SLOW this can be. I have to agree...
I was able to get a result, about five times quicker than the DataView.ToTable, by simply iterating over every row, checking if the field I'm interested isn't already in my generics list, and if not adding it to the list.
I would have though the way I'm doing it would've been extremely slow... but apparently the list.Contains() method is actually quite quick.
I got mine to work if you have comcast or hive DNS error i know how to get it to work.
Replicating the data in dbs across different geographical locations does have a run_value limit of 65MB. So the file size stored in the DB is limited by that.
i am trying to get a new account and i go threw all the information and sign up and i get to the code part and i put my code in and all it keeps saying is there is a tackinal difficulties try again later and i have been waiting and it keeps saying the same thing what do i do????
i have the wired connection from my xbox to my computer. when i hit test connection it says that im wired but the ip always failed and it is on automatic. i have also tried manual and typed in the ip. can someone help me out??
i cnt get by this stupid a** DNS how can i get passed it. someone plz just write an answer before i blow up my 360
Everything sounds cool but i'm trying to store and retrive EXE and DLL files from DataBase and what happens is that my files come up without header information.. any ideas?
the items are reordered. anyone notice this ?
To change all the objects owned by user test to dbo, run the following code:
exec chObjOwner 'test','dbo'
it will list the lines of execution string to call for sp_changeobjectowner for all the objects owned by the user.
have fun!...
Anwar Sayeed
my xbox will get on live but when i try and search for a match ,like on halo 3 and COD 4 i cant find any matches....HELP!!!
Pingback from At The Gates » Blog Archive » Bill Gates: Transitioning into the Future
Me tried to get agg. Marks by joining 4-5 tables in a single view but thr are some NULL values.
SELECT 5 + ISNULL(NULL, 0) + 2 help me to short out my problem.
Per Rob's suggestion I had to add the comments to exceed 5K. I noticed that once the app recognized the file it could be trimmed back to the 1k of content I had and it stilled worked. Also I was able to customize the content, including multiple divs and customizing their style attribute with css syntax...
im connected directly from modem to xbox but it says the ip address fails anybody plz help and what is it about the uPNP
When i start live, i choose my internet connection and then do the test, i pass the first one which was my wireless adapter then it says that my wireless is not connected.. But for some reason i already connected to my router.... Is something blocking it? Please help spent all week trying to fix it email is wilson_ha604@hotmail.com Send me an email on how to fix it PLEASE!!
The full chObjOwner script by Micorosft is listed here:
http://support.microsoft.com/?scid=kb%3Ben-us%3B275312&x=12&y=16
I have a hp laptop with verizon wireless internet card I took ethernet cable from a ethernet port on laptop and connected it to my wireless router a linksys wrt160n the another ethernet cable from router to xbox elite when I try to log on to xbox live the ip address passes but the DNS failes everytime I have tryied turning off fire walls on computer but it still didn't pass can someone please help me I'm all out of other ideas. Greatly appreciated
I bet Output parameters will be a way faster than bringing resultset.
I am trying to retrieve the data from a table where it is stored as binary. I am inputing an integer value(eg:100.10.10 an IP).It will be converted to Hexa in my Business Level and will be stored as Binary in DB.
How can retrieve the value as such how i Inserted (like 100.10.10) Is there any possible way?
Thank you.
Subramania,
You don't need to store IP addresses in a binary field. Store them in a bigint field instead. There's a little bit of code you have to write to do the conversion from System.Net.IPAddress to a long (Int64) but it's easy to find. Do a search on "convert ipaddress to long in c#" or something similar. A page like this should have the code you need:
www.codeguru.com/.../c10651
Good luck!
Man i JUST BOUGHT an new router (I used to have a modem) it is model: D-Link WBR-1310 54 mbps'. I have my cable direted from my xbox into my com room into my D-Link, The Light is on but for some reason My DSN isn't, and I'm not to saave with computer talk so I'm not quite sure what... UPNP is... Is it on my Xbox, my router, or on my Com?
PLEEZ HELP!
Been trying to find a clean way to do this since my conversion to .net.
Thanks for sharing the information!! Works beautifully!!
Hi, the only way I see this method working is if you order by the id. If you order by anything else, what would you use in the >= part of the where clause?
What about sorting by multiple columns?
Joseph: There is usually an option on the DLink router that allows DNS Relay. It is normally found in the LAN settings. Be sure that is enabled and that should fix your DNS problems.
UPnP is an option that will most likely need to be disabled on your router as well. If you go to DLink's website, search for how to disable this option for your router. In my experience with these routers, that option is always on by default.
Note: If you are using the DNS relay, you will not need to add DNS settings in the WAN settings. Those should be 0.0.0.0
Hope that helps.
Fantastic ! Thank you so much for sharing this code.
Just what I was looking for, thanks a lot!
You can use
Dim dt As New DataTable
dvGrupo = New DataView(dtDePara)
dt = dvGrupo.ToTable(True, "[field1]", "[field2]")
i have a cross over wire linked from my xbox to my laptop which runs on wireless, iv tried to set it up manually and automatically and its still not working, i cant find my xbox default gateway code, and it says no DNS addresses found, i have no ides what to do, its xbox 1, iv tried turning off the UPnP and nothings changed, im all out of ideas, if someone can help add me on msn or send me an email, noltondanny_5@hotmail.com, thank you kate x
im haveing trouble every time i go to new user for xbox live it takes me threw the whole prosses but when i put in my subscription code it says there are technical difficalties and to try again later its not trew a router its pluged straight into the xbox and i dont know what to do plz help me
RIGHT ('0' + CAST(DATEPART(hh, GetDate()) AS varchar(255)) + ':' + CAST(DATEPART(n, GetDate()) AS varchar(255)), 5)
Got me what I needed.
I can't to find this sample. Would you help me?
wen i test my coccection i get to XBOX LIVE and den wen i try download de update it says i cant ..plz plz plz plz plz help..wat is upnp and how do u disable it ..i have no idea wats rong :(
my xbox live won't either. it passes every test including the xbox live one and it gets to the game and says downloading network settings. then it says notice: you must be signed into a network account or xbox live to play online matches. my connection is eighty to a hundred percent most of the time. please help me. i have tested network connections a hundred times and it says everything passes
I just need a quick answer! I'm directly connected to my modem, there's no wireless issue. I entered in the IP address and subnet mask, gateway, etc. by looking at the information on my internet connection. Strangely, everytime the 360 checks diagnostics it acknowledges a connection, but the IP address fails every time. What the hell?
my dns is not working i have tried to restart the xbox over but it did work it keeps saying my dns is not working so plzz help
Change Owner of an Object in SQL Server
hi i have a wirless antena on my xbox and it oick up the signal from my router and it works but the connection sucks....so i ran a cable from my router to my xbox and everytime i do it the ip adress fails and i enetred everything in manually and it still failed help me!!!!!
email: bladefreak123@yahoo.com thanks i will apreciate the help very much!!
Worked like a charm for me on a Dlink DI-634. Thank you.
I have an oddity, perhaps its new 3.5 or something, but i have a case where i fill an arraylist from an array.
Public Class Smoething
private arrL as ArrayList
Public Sub setArr(inval() as double)
arrL = new ArrayList
for i as int16 = 0 to ubound(inval)
arrL.add(inval(i)
end sub
public overrides function ToString() as string
dim Accum as string
for i as int16 = 0 to arrL.count -1
Accum = Accum & arrL(i).tostring
return accum
end function
end class
in this case i consistently get a begining 0, and value i had passed start at position 1 on the return
but the count is also reads 1 to high.
any ideas?
MS article on why, with tests to back it up.
ftp.research.microsoft.com/.../TR-2006-45.pdf
i can seem to get my live working because the IP adress is failing
WHAT IS THE SOMECLASS HERE
my dns wont work and i cant get on live
I go to test connections and says everything is confirmed apart from Xbox Live. It says that failed! This hasn't happened me before. What do I do?!
HEYi want to get my Xbox live set up but it wont work.everytime it sais dns server failed when i go into test xbox live conection. i no nothing about computers and all this internet talk . can some1 dumb this down 4 me n help me please
What beautiful piece of code!
hi!
I have an assignment due on friday 5/09 on a smartphone...its a very simple application cos we just started the section. It just has basic softkey functions to change the wallpaper on the form.
My problem is that we also have to include a web service in the project....how do i do that?
I've added a Google web reference to my solution but now I'm stuck! It doesnt have to be complicated, as long as it works!
Please email me ASAP if you know what i should do!
My address is aradhna452@gmail.com.
Very good code. Saved lot of time
Hi
Go to http://www.urpc.t35.com - ther you'll find lots of info about your router, etc. And also find AWESOME hacks and tips there!
hope this helps
I have got the 3
mobile broadband right the problem is that it is wired to the network adaptor but when it comes up to the ip address it fails it ses your console was unable to negotiate a lease with your DHCP server it is really getting on my anoying me plz help!!!
try go.microsoft.com/fwlink
He should think about how to reduce the fuel price too so that people can save some money to purchase his products, else the just keep their money to purchase foods and pay for their transportations
Hello everyone. Im having trouble playing Halo 3 online, with Gears of War I can play no problem, but, when ever Im just about to start a match I recive a message saying that I quit from messenger and I lose connection to Xbox live and cannot reconect, Im not to sure of all your technical jargon, but I've listed everything im sure of. Finally when I run a network connection test, either my I fail the IP test or the Xbox live test. Any help would be greatly appreciated.
private static DataTable SelectDistinct(DataTable SourceTable, params string[] FieldNames)
i will obviously have to get the field names into params string[] and then call this method.
how will i do these two things??
helloise
I have been wrestling with a problem that your code solved. The built-in .NET DataTable.DefaultView.ToTable() method pegs the CPU at 100% and hangs when the dataset gets large. I swapped out that line with a call to SelectDistinct and it ran in a matter of seconds. From my limited experience it appears that your code is vastly superior to the built-in method and I would recommend people use your code and save themselves some major debugging headaches. Thanks for sharing...
actually, it depends on what browser is used as well. 1k most like is more than enough for most browsers. here's what really happens in the background:
if App_Offline.htm exists, IIS sends a 404 HTTP error result in the HTTP headers. if the file is empty, IIS generates its own error content. if it isn't, IIS sends the contents of App_Offline.htm.
however, Google Chrome only displays the content if the server sends at least 512 bytes of content, otherwise it displays its own 404 error page. Chrome is based on Apple's WebToolkit so Apple's Safari may exhibit the same behavior.
IE7 has a similar behavior if you have "friendly HTTP errors" enabled, except, that the content needs to be more than 512 bytes long before IE7 decides to display it. If you have it disabled, however, the content is displayed regardless of how long the content is. The difference there is that if the content is exactly 512 bytes Chrome will display the content, IE7 will not.
Firefox 3, always shows the content but may have a setting or a plugin that enables "friendly HTTP errors".
i don't have any information regarding other browsers as I don't have them available at the moment. i also cannot test 404 errors with no content because can't generate those yet. for all intents and purposes, however, 1K should be more than enough to get the content displayed instead of the browsers' generic 404 page, if any.
I'm also stuck w/ this issue. Ill try to post the steps if I can figure it out because im so fed up and have wasted so much time on it i would like to save someone the grief.
i cant go into xbox live because my damn ip adress keeps failing. please HELP ME!!!!!!!!!!
Pingback from Three Headed Monkeys » Select Distinct en un DataTable/DataSet
ftp.research.microsoft.com/pub/TR/TR-2006-45.pdf
no longer exists
guess it was against what was desirable to ms
cant find the doc anywhere else
anyone help with a link?
really thanks guys.. the function rowk really cool
Saludos desde chile
the mtu thing wont let me play xbox live wtf
My MTU have to be set at 1364 or greater on my Arris modem but i dont know how
Yeah having same trouble my mtu wont allow me to log on either. Since there update i beleive they have a bug....
again today/night
xboxlive went down
not a MTU problem but server maitainence
don't worry about that guys
hi friends.. I have a doubt in my problem.. i have created arraylist for 2 columns containing 'n' number of rows entered by the user and after the user enters values in al the rows i wanna retrieve it and calculate its moving average.. pls help me.. pls mail me if u can help. adarshyam@gmail.com
I hit timeout too... my PM just wanted to see, if things goes well on higher amounts of data. Apparently not. I thought mssql would handle easily ~300k of rows.
Modifying SubSonic`s source won't make things easier. :/
p.s. this one seems pretty neat too. :)
www.themanaged.net/.../10.aspx
select right('0'+cast(datepart(HH, getdate()) as nvarchar(2)),2)+':'+right('0'+cast(datepart(mm, getdate()) as nvarchar(2)),2)+':'+right('0'+cast(datepart(ss,getdate()) as nvarchar(2)),2)
I found that I had to make sure a .NET aspx page and a web.config file were present in the same directory as the App_Offline.htm file, or it wouldn't work.
Beware of the hash method. If I understand well the code a situation like this will lead to error:
Col1 Col2
------------
"AA," "BB"
"AA" ",BB"
Both this records will produce the same hash and be considered as "NOT DISTINCT".
Ciao.
Although this was posted years ago - you are the MAN
SUPER SUPER JOB!!! My thanks to Aftab Ahmed!
Hey Guys,
Can someone help me. I can connect to XBOX LIVE without issue for about 5 mins. Then I get disconnected. All i have to do is connect again and i'm fine again for 5 mins. I have a D-Link WBR 1310, all computers connect to the internet and no disconnects. i have checked all the postings on multiple websites and all my settings seem to be correct. My XBOX TEST passes everything with a Moderate NAT. I have contacted XBOX and DLink multiple times and it is the biggest waste of time cause no one is ever able to assist. I paid for the router and the 360 and LIVE and I can't stay connected for more than 5 mins. Can anyone help. Please email me derosam20@hotmail.com.
Good help
CAST(FLOOR(CAST(@DataAtual AS float)) AS datetime)
thanks. worked for me...
Someone please help me. I have a laptop with an at&t internet card and I'm using an ethernet cable to plug in from xbox to computer. And I absolutely cannot get past the IP address. it says that my console was unable to negotiate a lease with my DHCP server. I have no idea what that means or how to fix it. I've tried everything I know how to do and nothing's worked. Will someone pretty please help me. My email is sk8ergirl252003@yahoo.com I would really appreciate the help.
Thanks a lot
i've been getting on xbox live for the last 6 months or so
its a year subscript too. o and by the way, its an xbox original. i haven't even had 1 problem yet. Now it''s telling me that i have new messages that i HAVE to view before signing on. so there are no new emails and account manager says i have no new messages, and yet i still san't sign on. I've ran the xbox live test and it says i am connected, i just am not allowed to be on. any help ??!!
If I understand this correctly, since this algorithm is sorting ( n log n, I hope ) before removing rows, it ends up being a n log n algorithm.
The MS .ToTable() with distinct option selected runs like it's not doing that and is just comparing every row to every other one... n^n.
I'm working with 200,000+ rows on tables, and using n log n insteand of n^n is a difference of 10 seconds to around 30 minutes or more.
Microsoft needs to implement this algorithm for their ToTable function in their next framework, IMO. I don't know if you can pass that along.
it is saying that im suspended from xbox live and it wont come back to a sertin date. but the date that it says that, i would be able to get on it today and it still wont let me. soed this mean i have to get a new xbox live account
public DataTable SelectDistinct(DataTable sourceTable, params string[] fields)
DataView dv = sourceTable.DefaultView;
DataTable dt = dv.ToTable(true, fields);
return dt;
every time i test my xboxlive connection every thing gets an ok but when it gets to xboxlive it say failed and it never gets to the nat so whats up with that
在做容器的时候遇到了问题,网上搜到一篇好文,在此转载!感谢作者!
can some one please list simple 1 line code to get time stamp in t-sql.
i had these functions but lost the page.
any help here!
Regards,
Genious
You will not believe how long I have looked for this. Thanks
I've just got my xbox back from a repair (they sent a brand new 1). so i thought gr8 back to gaming! try to sign into xbox love and it tells me an update is needed, so i click on the update wait patientley for about 45 mins... the bar hasnt moved an inch! Wtf is the matter with it?? can't sign in to my profile or anything:( can any1 help??
With some help of Anonymous Delegates you can easily write one WAY better then this, I've done it in fact at; ra-ajax.org/jquery-ish-selector-for-webcontrols.blog
This one contains methods like;
* T SelectFirst<T>(Control from)
* T SelectFirst<T>(Control from, Predicate<Control> del)
* IEnumerable<T> Select<T>(Control from);
* IEnumerable<T> Select<T>(Control from, Predicate<Control> del);
etc...!
But anyway, great work :)
Try indexing the columns you plan to sort by.. it helps. Trust me.
Pingback from Micha?? Jask??lski » Stronicowanie danych w Microsoft SQL Server
just unplug it for 20 30 second its 90 percent ganna work
Thanks for the help. Worked for me.
Thanx!!
dv.ToTable is perfect one...
Thanks a lot Gabriel...
my xbox 360 can't get pass the DNS server i went to the control pad off my computer i even called my Internet provider and they said that the ones that i have is the ones the have. my network connections work great and IP address says confimed. what i should do next
i want to stor multiple values in a variable and then check wether any of the values held in the variable match what the user inputs. Please help i can not code it , i tried but failed. could you please elaborate on answers as i do not how i woud use arrays in this way thanks
DIFFRENCE BETWEEN .NET 1.1 AND .NET 2.0 ?
ASP.NET 2.0 introduces a lot of new features. Some of this features aim to simplify the problems faced using the earlier versions and some features are introduced to provide lot of new facilities.
1) The most important features that are incorporated in ASP.NET 2.0 are:
(a) Master Pages
Master pages are introduced to remove one of the most important deficiencies of earlier version of ASP.NET. One thing that has become apparent in the earlier version of ASP.NET is the lack of architecture for applying a consistent look and feel. In earlier version of ASP.NET whenever a developer wants to replicate a common functionality of a web page in other pages, the most possible options he uses is creating a user control and then replicate the functionality in other pages.
ASP.NET 2.0 aims to solve this problem by introducing the concept of Master pages. First the developer needs to define a master page containing the content that he wants to appear on other pages and then use the ContentPlaceHolder controls to define the locations where the sub pages can plug in the content of their own. The he has to build the sub pages - .aspx pages – that reference the master using directives like this one:
<%@Page MasterPageFile = ~/MyMasterPage.master” %>
In addition, an application can designate a default Master Page in web.config as shown here:
<configuration>
<system.web>
<pages masterPageFile="~/ MyMasterPage.master " />
</system.web>
</configuration>
(b) PreCompilation
By default, ASP.NET web pages and code files are compiled dynamically when a first request is made to the page. After the initial compilation, the compiled pages is cached; the cache is used to satisfy the subsequent requests for the same page. Even though this approach is flexible, when the page is requested for the first time, it requires a bit of extra time to compile the code. You can avoid this overhead by leveraging a new feature known as precompilation; by using this feature, you can compile an ASP.NET web site before making the web site available to the users.
(c) Sharing code in the application
In earlier version of ASP.NET, if you were to reference a reusable component from your dot net application, you had to compile the assembly and place it in the bin folder (or place it in the GAC) of the web application. But now with ASP.NET 2.0, creating a reusable component is very simple and straightforward. All you need to do is to create a component in a pre-defined subdirectory called code. Any component placed in this directory will be automatically compiled at runtime into a single assembly. This assembly is automatically referenced and will be available to all the page in the site.
(d) Themes and Skins
ASP.NET 2.0 introduces the concepts of Themes and Skins by means of which the look and feel of the web pages can be enhanced to a great extent to make them visually catchy and attractive.
A skin is a set of visual attributes applied to a control type. A theme is a collection of skins. There are a lot of predefined themes in ASP.NET 2.0. One can use it by using the following line of code:
<%@ Page Theme=”SmokeAndGlass” %>
The page directive’s Them attribute declaratively applies a theme to a page. Themes can also be applied programmatically using the page class’s Theme property
2) Support for 64 bit platform application development. These applications can run faster and take advantage of more memory that is available and users can build managed code libraries or easily use unmanaged code libraries on 64.bit machines.
3) Access control list support (ACL). This is used to grant or revoke permission to use a particular resource on a computer. Several new classes have been added to the .NET Framework to enable manage code to create and modify ACL. Members that use ACL have been added to the I/O, registry and threading classes
4) Authenticated streams is the new class introduced into the .NET Framework to enable users transmit secure information between a client and a server. The System.Net.NegotiateStream and System.Net.SslStream are classes which authenticate the transmission of data. These stream classes support mutual authentication, data encryption and data signing. The System.Net.NegotiateStream class uses security protocol for authentication while the later uses the Secure socket layer for authentication.
5) Detecting changes in Network connectivity is enabled by the use of the System.Net.NetworkInformation.NetworkChange. The user can now receive notification when an Internet Protocol (IP) address of a network Interface changes. This can occur due to disconnected network cable, hardware failure etc.
ADO.NET now supports user defined types, asynchronous database operations, XML data types, large value types, snapshot isolation, and has attributes that allow applications to support multiple active result sets(MARS) with SQL Server 2005.
Here is a list of new and updated additions to ADO.NET:
1. Bulk Copy Operation
Bulk copying of data from a data source to another data source is a new feature added to ADO.NET 2.0. Bulk copy classes provides the fastest way to transfer set of data from once source to the other. Each ADO.NET data provider provides bulk copy classes. For example, in SQL .NET data provider, the bulk copy operation is handled by SqlBulkCopy class, which can read a DataSet, DataTable, DataReader, or XML objects. Read more about Bulk Copy here.
2. Batch Update
Batch update can provide a huge improvement in the performance by making just one round trip to the server for multiple batch updates, instead of several trips if the database server supports the batch update feature. The UpdateBatchSize property provides the number of rows to be updated in a batch. This value can be set up to the limit of decimal.
3. Data Paging
Now command object has a new execute method called ExecutePageReader. This method takes three parameters - CommandBehavior, startIndex, and pageSize. So if you want to get rows from 101 - 200, you can simply call this method with start index as 101 and page size as 100.
4. Connection Details
Now you can get more details about a connection by setting Connection's StatisticsEnabled property to True. The Connection object provides two new methods - RetrieveStatistics and ResetStatistics. The RetrieveStatistics method returns a HashTable object filled with the information about the connection such as data transferred, user details, curser details, buffer information and transactions.
5. DataSet.RemotingFormat Property
When DataSet.RemotingFormat is set to binary, the DataSet is serialized in binary format instead of XML tagged format, which improves the performance of serialization and deserialization operations significantly.
6. DataTable's Load and Save Methods
In previous version of ADO.NET, only DataSet had Load and Save methods. The Load method can load data from objects such as XML into a DataSet object and Save method saves the data to a persistent media. Now DataTable also supports these two methods.
You can also load a DataReader object into a DataTable by using the Load method.
Every time I try to go on Call of Duty 4 Live it does this,The Current profile is not allowed to play on xbox Live.WTF!!!!!!!!!!!!
I have been trying to connect to Xbox live for 2 days now. I have it running through a router/modem. My IP address keeps failing. I put it on autmatic but it says my gateway is invalid.So I manually entered the IP and the subnet mask. I did some research and entered my IP in the gateway except i took off the last number(.xxx) and added (.1) (xxx.xxx.xx.1)It says "Your gateway did not respond to a network request." I also recall something about changing my HDCP server settings or something. I contacted my ISP and they said to contact the router manufacturer. How can I find my gateway number? What is the problem here?
how do i disable the UPnP?someone help!
I have Had xbox live nearly a year and it is not up til may but it wont connect it says internet wire not connected even though it is and my dad used the wire for a laptop and it worked
i just fixed my xbox from rod but somehow i can't connect to xbox live,everything is ok from ip to network connection but xbox live fails,anybody knows the reason?
That really cleared things up for me - Thanks!
dv.ToTable(true, fields); have performance problem with something like 9000 rows (I tested with 9000) it takes some seconds which is drawback here
Haha Guttered hate to be you right now :)
silly child
To disable UPnP, use PC to connect to your router
config page. UPnP might be under "advanced menu".
After disabling UPnP on my Netgear, we were able to join xbox live.
在论坛上,动态控件好象是永久的话题。大家都知道要动态控件起作用,PostBack时需要重新生成或装载(LoadControl),而且需要深入了解其状态的变化过程。
有个同事另谋高就,要离开我们工作的...
Pingback from Campi BLOB | hilpers
MY XBOX WONT LET ME PLAY GAMES ONLINE JUST CHAT HOW DO I GET PAST THIS IT SAYZ REDEEM COOD BUT WOTS THAT ??
SUM1 PLZ OFER THIRE HELP
MI XBOX WONT LET ME PLAY ONLINE JUS CHAT HOW CAN I UNDO LISS
How can you declare a dynamic array.. i just can't understand in your example clearly..pls reply soon..tnx..
fuel price dont concern gates... :P
I have just got myself an xbox & tried to play xbox live. My xbox is running straight off the modem.It says I can connect to xbox live but cant sign into messenger. Has anyone got any idea's on ho I can resolve this problem?
My asp.net page became a lot faster. Got from about 30 to 5 seconds. Still when using parameters the page was slow, when I added CommandBehavior.SingleRow to ExecuteReader the magic happed. So, thanks Erik :)
I've have been changing settings all over the place with this thing. Thank you so much!
The C# example shows how to do AddWordTransition/AddRuleTransition with two words...what if you have four words?
I have an Nvidia board and had exactly the same quicktime/ itunes issues, BSOD’ s and stuttering under Vista. My fix was to go into device manager and find“ Nvidia Nforce serial ATA controller” and then right click and select update driver software and
Pingback from Topics about Web-design | Quick Validation Hack for ASP.NET - Erik Porter’s Blog
Pingback from IP address in messenger - Page 2
Two years ago on this very date of June 20th, I started my first day here at Microsoft. It was an exciting
ThetableintheDataSetisasfollows:Column1
Atlas is the solution from Microsoft which is integrated in Visual Studio 2005. Please read the following
Pingback from Erik gates picture | spherify
Pingback from Get the search you want in IE7 | James O'Neill's Blog
Pingback from Pagination in SQL Server « Tech Hub
Pingback from Poner offline una aplicacion ASP.NET – [ Web 2.0 | Tecnolog??a | Accesibilidad | Seguridad ]