Posts

Get Database tables and there structure and database tables data. Backup database tables and data without bak file. database version issue backup. database backup version error

 This will create your table script Get Database tables and there structure and database tables data.  Backup database tables and data without bak file. database version issue backup. database backup version error select database select tables  then go to view above object explorer details select all tables except folders  then right click the mouse > script table as > create to > new query editor window you will get all tables then save it to extention name.sql or whatever you want it to save in notepad or other. This will create your tables data backup  Right Click on database which you wanted to get data Tasks > Generate Scripts > Next > if you want specific tables so select other wise next select Advance Button > Types of data to Script Line and Select > it was schema only  you select it > Data Only > then select file path will be save in fileName select path Next >  Next > it will generate all tables data and preparing all success tables status 

Error while calling API in .net core use responseType in get method

  this . http . get ( this . baseURL + 'api/Values' , { responseType : 'text' }). subscribe ( payload =>     this .ArrayList = payload );

Access to XMLHttpRequest at 'https://localhost:44363/api/Values' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

 Access to XMLHttpRequest at 'https://localhost:44363/api/Values' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Error in .net core API of CORS add first red color line and with origins is your link of angular. and 2nd is  Configure method with red color in startup class both in startup.cs.  public void ConfigureServices(IServiceCollection services)         {             //services.AddCors(o => o.AddPolicy("MyPolicy", builder =>             //{             //    builder.AllowAnyOrigin()             //           .AllowAnyMethod()             //           .AllowAnyHeader()             //           ;             //}));             services.AddCors(options => options.AddDefaultPolicy(builder =>             {                 builder.WithOrigins("http://localhost:4200").AllowAnyMethod().AllowAnyHeader();             }));             s

How to Connect angular with .net core API and get response in Array

 Here is the example of ts file where service is calling and hold in Array list. import { Component } from '@angular/core' ; import { HttpClient, HttpHeaders } from '@angular/common/http' ; import { Observable, map } from 'rxjs' ; @ Component ({   selector: 'app-login' ,   templateUrl: './login.component.html' ,   styleUrls: [ './login.component.css' ] }) export class LoginComponent {   baseURL : string = "https://localhost:44363/" ;   Model : any ;   ArrayList : any ;     constructor ( private http : HttpClient ) {   }   onSave (){     //alert("adasd");     const headers = { 'Access-Control-Allow-Origin' : '*' , 'Access-Control-Allow-Methods' : "POST" , 'Access-Control-Allow-Headers' : "accept, content-type" }       const body = "" ;     console. log (body) //  this.http.get(this.baseURL + 'api/Values', {responseType: 'tex

how to start programming in 2023

 Starting programming can be an exciting journey! Here are some steps you can follow to begin your programming journey. Choose a programming language: There are many programming languages to choose from, such as Python, JavaScript, Java, C++, and more. Consider your goals and interests to select a language that suits your needs. Python is often recommended for beginners due to its simplicity and readability. Set up your development environment: Install the necessary software tools to write and run code. Depending on your chosen programming language, you may need an integrated development environment (IDE) or a text editor. For example, if you choose Python, you can use an IDE like PyCharm or a text editor like Visual Studio Code. Learn the basics: Start with the fundamentals of programming, which typically include concepts like variables, data types, control structures (if statements, loops), functions, and basic input/output. Online tutorials, interactive coding platforms, and textboo

Can ChatGPT Replace Programmers? Examining the Role of AI in Software Development

 Introduction: The rapid advancements in artificial intelligence (AI) have sparked debates about its potential to replace various human professions. In the field of software development, one question that often arises is whether AI, such as ChatGPT, can replace programmers. While AI has made remarkable progress in recent years, it is important to understand the capabilities and limitations of ChatGPT before making any conclusions. In this blog post, we will delve into the role of ChatGPT in software development and explore its potential impact on programmers. Understanding ChatGPT: ChatGPT is a language model developed by OpenAI. It is trained on vast amounts of text data and can generate human-like responses given a prompt or input. It has shown impressive capabilities in understanding and generating text, allowing it to engage in conversations and provide meaningful answers. However, it is crucial to note that ChatGPT does not possess real-world knowledge beyond what it has been trai

Demystifying YouTube Earnings: What You Need to Know in Pakistan

Introduction: In recent years, YouTube has become a thriving platform for content creators to showcase their talents, share their knowledge, and potentially earn a significant income. Pakistan, with its growing internet penetration and vibrant online community, has seen a surge in YouTube creators. However, many aspiring content creators wonder about the average YouTube earnings in Pakistan. In this blog post, we will delve into the factors that influence YouTube earnings and provide an overview of what you can expect as an average YouTube earner in Pakistan. Factors Influencing YouTube Earnings: Ad Revenue: The primary source of income for most YouTube creators is through advertisements displayed on their videos. YouTube's advertising program, Google AdSense, pays creators a portion of the revenue generated from ads viewed or clicked by their audience. Ad revenue is influenced by various factors such as video views, engagement, niche, and advertiser demand. Monetization Policies: